New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBSD: Could not open library 'libglib-2.0.so.0': File not found #221
Comments
Hello @1234dev, I think Ruby ffi is expecting there to be a symlink meaning "glib-2.0 API version 0", ie. a link from libglib-2.0.so.0 to whatever binary you have. You'll need a similar link for libvips.so.42 as well. I don't know much about the OpenBSD linker -- how does it handle ABI back compatibility? You might need to ask the Ruby ffi maintainer (they are very helpful) to make some adjustments to their library finder. |
Thanks @jcupitt! |
So perhaps the problem is with the openbsd glib package. Why is there no link for |
Looks like a port was created not too long after this issue: |
Install libvips and its dependencies:
Symlink the OpenBSD binaries with what ruby-vips expects as of 2022.06.30:
Cc: ffi/ffi#738 |
For more please see https://github.com/basicfeatures/openbsd-rails 👍 |
Oh, great! Thanks for the update @basicfeatures. You probably don't need |
Getting
LoadError (Could not open library 'glib-2.0.so.0': File not found. Could not open library 'libglib-2.0.so.0': File not found)
here on OpenBSD. How to tell ruby-vips to look for/usr/local/lib/libglib-2.0.so.4201.2
instead?Thanks.
The text was updated successfully, but these errors were encountered: