not found cannot find

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
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ./clock
./clock: error while loading shared libraries: 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/ 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 is in the directory


It still is not finding it. Notice 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.


why do you have that weird /etc/ entry in your LD_LIBRARY_PATH?

copy and paste the output of ldd ./clock from that directory

Maybe it’s just me, but I had the same problem.
Worked when I set LD_LIBRARY_PATH in .bashrc and then exported it.