Closed Synchro closed 2 years ago
Same issue, but in docker linux
What helped me was installing additional package using
sudo apt-get install libvips-dev -y
Sorry, this issue dropped off my radar :(
Yes, the old PECL module compiles C source code against libvips, so you'll need the libvips dev package, and the php dev package too.
The new php-vips 2.x doesn't need the PECL extension -- it uses FFI to make direct calls into the libvips shared library. It only needs the binaries to install.
You can still use the php-vips 1.x branch if you like, but I would consider moving to the new version. The API is the same, so there are no downstream code changes.
The FFI is non standard module (practically noone includes it in their php builds and I have to compile it on my own). I would rather have pecl extension or something "plug & play".
It's a standard part of PHP 7.4 and later, I think.
You're right, I don't know how many php builds include it, but at least Debian-like and RedHat-like systems do have it compiled into the php binary.
This seems to be the same problem as in #85, but the solutions suggested there don't work.
During this I'm asked
enable vips [yes]
, and all ofyes
,/usr/local/opt/vips
, and/usr/local/opt/libvips
produce the same result. FWIW:Similarly, trying the build with or without the brew path to
pkgconfig
makes no difference either.Anything I've missed?