When I compiled clock in its directory by typing make everything went fine. When I went to the executables directory
and typed ./clock ,well I got what is seen below.
james ~/NVIDIA_CUDA_SDK/bin/linux$ ls
emurelease release
james ~/NVIDIA_CUDA_SDK/bin/linux$ cd emurelease
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ls
clock
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
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ echo $PATH
/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ echo $LD_LIBRARY_PATH
/usr/local/cuda/lib:/etc/ld.so.conf:
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$
I have echoed my $PATH and my $LD_LIBRARY_PATH as seen above. I
know this problem has been discussed before on the forum. I think my paths a correct
and the file libcudart.so.2: is in the directory
/usr/local/cuda/lib
It still is not finding it. Notice libcudart.so.2 is in my $LD_LIBRARY_PATH
I am unsure as to what is causing this error. Any help appreciated.
I know this has been discussed before.
Newport_j