What is going on here:
when I check for $PATH, $LD_LIBRARY_PATH and ldd ./clock
I get the following outputlibcudart.so.2
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ echo LD_LIBRARY_PATH
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease echo PATH
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease ldd ./clock
linux-gate.so.1 => (0xb7f9e000)
libcudart.so.2 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e98000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e72000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e67000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d18000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7d00000)
When I run the file clock file executable I get this.
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ./clock
./clock: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory
Now when I do a file search for libcudart.so.2, I get
So the file, libcudart.so.2,exists and it is in the correct directory. Why can’t the executable find it? I have shown two instances
where the executable cannot find it.
Any help greatly appreciated.
This was originally in the wrong directory, but I moved into the this more appropriate directory.