Thanks for the info about patchelf! I managed to get pngcrush working, but not rsvg-convert:
Code:
$ patchelf --set-rpath /mnt/us/weather/lib rsvg-convert
$ patchelf --set-rpath /mnt/us/weather/lib pngcrush
$ readelf -d rsvg-convert | grep RUNPATH
0x0000001d (RUNPATH) Library runpath: [/mnt/us/weather/lib]
$ readelf -d pngcrush | grep RUNPATH
0x0000001d (RUNPATH) Library runpath: [/mnt/us/weather/lib]
It turns out that all of pngcrush's shared libraries are already in /usr/lib, but I was able to confirm that it was searching the RUNPATH by touching one of the libraries in my lib folder and getting an error:
Code:
# pngcrush --qf -c 0 img/error.png img/e.png
pngcrush: error while loading shared libraries: /mnt/us/weather/lib/libpng12.so.0: file too short
However, no matter what I've tried, I can't get rsvg-convert to search it's RUNPATH:
Code:
# rsvg-convert
rsvg-convert: error while loading shared libraries: libgsf-1.so.114: cannot open shared object file: No such file or directory
# ls /mnt/us/weather/lib | grep libgsf
libgsf-1.so.114
Any hints or ideas about what's happening?