Closed AndyObtiva closed 7 months ago
I could not reproduce this issue. This is a general problem with Fiddle and Ruby-FFI installations and can probably be resolved by properly installing libffi and rebuilding ruby or reinstalling fiddle. Thank you for your report.
I also did not run into the above issue. I compile everything from source (libffi, ruby too etc...).
My gtk+ version is 3.24.41 - not sure if 3.24.33 may be too old.
From the error message, e. g.
cannot load such file -- fiddle/import
perhaps the fiddle he is using is incomplete? Not sure if that is an issue, but debian-based systems tend to split things up a lot. It's a bit strange setup he uses since he also uses rbenv, so it is not a pure linuxmint system anymore, so I think we can not even assume that it may not NOT work on linuxmint by default, but perhaps his fiddle was incomplete, so the rbenv variant he uses may also not work because of that, in regards to add-on code.
libffi is usually easy to compile from source too by the way:
https://github.com/libffi/libffi/releases/download/v3.4.6/libffi-3.4.6.tar.gz
So he could give it a try to compile it into /usr/ or /usr/local/ (and moving /usr/local/lib as first entry in /etc/ld.so.conf) and then re-install rbenv. (I don't know how rbenv is installed though, whether this compiles from source or installs a binary.)
I received this issue about running libui in Ruby 3.3 in the Glimmer Gitter chat. I suggested to the software engineer to downgrade their Ruby to 3.2 and that worked in resolving the issue.
Still, I am sharing the issue here because we need to ensure libui works in the newest Ruby 3.3 too (which was released last christmas of 2023). The issue was encountered on Linux, but it might be an issue on Mac and Windows too.