LD_LIBRARY_PATH problem
Brian Cavagnolo
brian at cozybit.com
Mon May 14 16:08:10 PDT 2007
Hello,
I've been having trouble with LD_LIBRARY_PATH and it sounds like my
problem may be related to the one described here:
http://busybox.net/lists/uclibc/2004-March/008563.html
It seems that when LD_LIBRARY_PATH is set in my ash environment it is
not parsed by the loader. However, when it is passed explicitly on
the command line, it works. Here is a trace of the output:
# test_Debug
test_Debug: can't load library 'libModuleMPI.so'
# echo $LD_LIBRARY_PATH
/usr/local/lib
# ls $LD_LIBRARY_PATH
libDebugMPI.so libEventMPI.so libModuleMPI.so
libDisplayMPI.so libKernelMPI.so libResourceMPI.so
# LD_LIBRARY_PATH=/usr/local/lib test_Debug
Running 8 tests........OK!
#
As you can see, the first invocation of test_Debug fails despite the
fact that LD_LIBRARY_PATH contains /usr/local/lib and /usr/local/lib
contains the desired library. Further, the invocation succeeds when I
pass LD_LIBRARY_PATH explicitly on the command line.
Any ideas?
Thanks,
Brian
More information about the busybox
mailing list