View Single Post
Old 11-23-2016, 05:01 PM   #3
scolby33
Member
scolby33 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2011
Device: Kindle
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?

Last edited by scolby33; 11-23-2016 at 05:03 PM.
scolby33 is offline   Reply With Quote