Closed joergd closed 4 years ago
If you're installing libvips to a non-standard /usr/local/vips/lib
location then you'll need to ensure you tell the OS about this, either via the LD_LIBRARY_PATH
environment variable, or via a config file in /etc/ld.so.conf.d
.
Ok - that's a great first step out of the weeds and confusion :). Thank you.
I don't really care where it gets installed to - is there a better path, without needing to set LD_LIBRARY_PATH etc - as this would then save me from going down a whole other rabbithole of sysadmin.
Ok - so for anybody with the same issue. With @lovell's suggestion, I changed the following line in the Dockerfile.
ENV VIPSHOME /usr/local/vips
to
ENV VIPSHOME /usr/local
And now I no longer get that error, and sharp can deal with pdf's too!
Glad you got it working. If you remove --prefix=$VIPSHOME
entirely then /usr/local
should already be the default.
I have read the page: https://sharp.pixelplumbing.com/install
I want to install sharp/vips from scratch, as I want PDF support using poppler.
I am using Docker as my machine.
Everything installs without error (it was quite a journey to get this far), and vips is configured to use various dependencies.
But when my node service starts up, and I require sharp, I get the following error:
I am installing, from source, libvips, version 8.9.2
I can see, when I configure it, that it supports jpg, webp, gif, pdf (via poppler) etc.
I can see that the file in question does exist on my machine, but I imagine not in the location where sharp is looking.
My Dockerfile, that I have pieced together from various sources and trial and erroring is as follows:
I also get no errors when I run:
My system details are as follows:
Any help would be greatly appreciated. Compiling from source and doing all these things are not my strength, so the idea for example that sharp might be looking in the wrong folder for that libvips-cpp.so.42 is all good and well, but I have no idea to make sharp do something else .... :(
Thank you :)