Skip to content

libvips.so.42 not found in correct path #201

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

Closed
ganicus opened this issue May 1, 2023 · 5 comments
Closed

libvips.so.42 not found in correct path #201

ganicus opened this issue May 1, 2023 · 5 comments

Comments

@ganicus
Copy link

ganicus commented May 1, 2023

Here is the location of my libvips.so.42:

sudo find / -name "libvips.so.42"
/usr/lib/x86_64-linux-gnu/libvips.so.42
/usr/local/lib/libvips.so.42

I keep getting this error:

Uncaught Jcupitt\Vips\Exception: Unable to find library 'libvips.so.42' in any of ['/usr/local/lib64/', '/usr/local/lib/']. Make sure that you've installed libvips and that 'libvips.so.42' is on your system's library search path. in /var/www/html/vendor/jcupitt/vips/src/FFI.php:261

My php info output:

vips property value
Vips headers version 8.13.3
Vips library version 8.13.3
Vips ABI version 57.3.15

What's not happening here?

@ganicus
Copy link
Author

ganicus commented May 2, 2023

Could this be related to #178

@ganicus
Copy link
Author

ganicus commented May 2, 2023

My apologies - my apache FFI ini settings had FFI to "preloaded" and not "enabled" which prevented the library from loading.

I would suggest changing FFI.php line 256 from:

Utils::debugLog("init", ["msg" => "library load failed", "exception" => $e]);

to:

Utils::debugLog("init", ["msg" => "library load failed", "exception" => $e->getMessage()]);

It currently returns an empty exemption object instead of the error message.

@ganicus ganicus closed this as completed May 2, 2023
@jcupitt
Copy link
Member

jcupitt commented May 3, 2023

Ooop! Good idea, thanks.

jcupitt added a commit that referenced this issue May 3, 2023
thanks ganicus

see #201
@jcupitt
Copy link
Member

jcupitt commented May 3, 2023

... I put in your fix and credited you in the CHANGELOG, I hope that's OK.

@ganicus
Copy link
Author

ganicus commented May 3, 2023

Been working perfectly since I updated the FFI settings. Thank you!

jcupitt added a commit that referenced this issue Jun 29, 2023
This PR adds a libraryLoad() function which searches a path for a library that
supports an API, then uses that to load libvips, libglib and libgobject.

This fixes #178 and #201

See also #198

Tested on macOS 13.4
jcupitt added a commit that referenced this issue Jun 30, 2023
* improve library finding

This PR adds a libraryLoad() function which searches a path for a library that
supports an API, then uses that to load libvips, libglib and libgobject.

This fixes #178 and #201

See also #198

Tested on macOS 13.4

* fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants