I need to set LD_LIBRARY_PATH
for CUDA prior to launching darknet. Looks like this:
echo $LD_LIBRARY_PATH
/usr/local/cuda/lib64
When the application launches, it fails to load a library it should have found in that directory:
./darknet
./darknet: error while loading shared libraries: libcudart.so.10.0:
cannot open shared object file: No such file or directory
But the library is definitely in that directory:
ldd /usr/local/cuda/lib64/libcudart.so.10.0
linux-vdso.so.1 => (0x00007ffe7bf2d000)
...etc...
I assume I'm not correctly setting up LD_LIBRARY_PATH in fish. This is how I originally did it in fish:
set -U LD_LIBRARY_PATH /usr/local/cuda/lib64
echo $LD_LIBRARY_PATH
/usr/local/cuda/lib64
When I try the exact same thing in bash, it works fine:
bash
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
./darknet
usage: ./darknet <function>
All of this is on 64-bit Ubuntu 16.04.6 running fish 2.2.0 and bash 4.3.48.
You’re not exporting your variable. Instead, do:
set -Ux LD_LIBRARY_PATH /usr/local/cuda/lib64
./darknet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With