Closed aboyett closed 8 years ago
It's a pretty common issue on Debian (and Debian-based distros like Ubuntu). You need to run ldconfig
. This isn't just a Squash thing; it's true for every shared library you install to /usr/local.
Ah, of course, running ldconfig
fixed it right up. I've gotten to used to build systems and package managers handling that for me and forgot cmake doesn't do it.
I tried creating a docker image for squash based on Debian Jessie. The Dockerfile I used is as follows:
I then executed this in a clean git checkout (commit 04c9b77) with initialized submodules by running
docker build -t aboyett/squash .
The tests completed successfully and installation appears to have succeeded, but the installedsquash
binary cannot findlibsquash.so
If I run
ln -s /usr/local/lib/libsquash0.8.so.0.8.0 /usr/lib/
(commented final line of the Dockerfile,) I then am able to executesquash
successfully:I would expect
make install
to yield a working installation without the need to symlink the shared lib. Please let me know if this issue is due to operator error :smile: