On Fri, Nov 20, 2009 at 01:28:44PM -0500, Ryan Hafen
<[email protected]> wrote:
Here's what I have in /home/uname/local/lib
libjpeg.so -> libjpeg.so.7.0.0
libjpeg.so.7 -> libjpeg.so.7.0.0
libjpeg.so.7.0.0
Would the extra ".0" be doing anything? I've tried specifying
LD_LIBRARY_PATH too and it didn't work.
It should.
Try this:
echo "main(){}" > test.c
gcc test.c -L/home/uname/local/lib/ -ljpeg -o test
ldd ./test
LD_LIBRARY_PATH=/home/uname/local/lib/ ldd ./test
What the output of these commands?
Matthias
Thanks - it does seem like it should be working. Here's the output:
$ ldd ./test
libjpeg.so.7 => not found
libc.so.6 => /lib64/tls/libc.so.6 (0x00000033eb100000)
/lib64/ld-linux-x86-64.so.2 (0x00000033eaf00000)
$ LD_LIBRARY_PATH=/home/uname/local/lib/ ldd ./test
libjpeg.so.7 => /home/uname/local/lib/libjpeg.so.7 (0x0000002a95557000)
libc.so.6 => /lib64/tls/libc.so.6 (0x00000033eb100000)
/lib64/ld-linux-x86-64.so.2 (0x00000033eaf00000)
So it finds it with LD_LIBRARY_PATH. Don't know what's wrong - not
sure what other specifics to provide. I'll keep trying.