cannot file file the libcudart.so.2 file exists, is in path, but is not found

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 /usr/local/cuda/lib 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 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)
/lib/ld-linux.so.2 (0xb7f9f000)

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
james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$

Now when I do a file search for libcudart.so.2, I get

/usr/local/cuda/lib/libcudart.so.2
/usr/local/cuda/lib/libcudart.so.2.1

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.

Respectfully,

Newport_j

This was originally in the wrong directory, but I moved into the this more appropriate directory.