otto porter
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mydir/lib export LD_LIBRARY_PATH
The correct Bash syntax is: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mydir/lib export LD_LIBRARY_PATH or export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mydir/lib
Librarys are still found however, in the previously defined locations.
LD_LIBRARY_PATH works OK on my SuSE 7.1. A simple example how to check it out follows: $ strace ls 2>&1 | grep libc.so | head -1 open("/opt/mozilla/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT $ export LD_LIBRARY_PATH=/xxx:$LD_LIBRARY_PATH $ strace ls 2>&1 | grep libc.so | head -1 open("/xxx/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT Strace lists all attempts to open shared libraries for reading; just check the order. See also "man ld.so". -- Alexandr.Malusek@imv.liu.se