simple config: SDK error, not found

I’ve recently installed the CUDA toolkit and SDK on an AMD box running Scientific Linux 5, x86 (This is just RHEL5, recompiled from source by the friendly people at Fermilab).

As a regular user, I’ve unpacked the SDK in my home directory and now am trying to compile the example program. With,

[nmoore@buff NVIDIA_CUDA_SDK]$ echo $PATH

[nmoore@buff NVIDIA_CUDA_SDK]$ echo $LD_LIBRARY_PATH

I compile the example and see lots of errors:

[nmoore@buff NVIDIA_CUDA_SDK]$ make
make[1]: Entering directory /home/nmoore/NVIDIA_CUDA_SDK/common' ar: creating ./../lib/libcutil.a a - obj/release/bank_checker.cpp_o a - obj/release/cmd_arg_reader.cpp_o a - obj/release/cutil.cpp_o a - obj/release/error_checker.cpp_o a - obj/release/stopwatch.cpp_o a - obj/release/stopwatch_linux.cpp_o a - obj/release/cutil_interop.cpp_o make[1]: Leaving directory /home/nmoore/NVIDIA_CUDA_SDK/common’
make -C projects/scan/
make[1]: Entering directory `/home/nmoore/NVIDIA_CUDA_SDK/projects/scan’
/usr/bin/ld: warning:, needed by /usr/local/cuda/lib/, not found (try using -rpath or -rpath-link)

Strangely though, I see the library on my filesystem,

[nmoore@buff NVIDIA_CUDA_SDK]$ ls -1 /usr/local/cuda/lib/

So, what should I be doing differently?


Nathan Moore

Problem solved.

In addition to not having glut installed, I also forgot to properly modify my .bash_profile login file. The particular line that was missing was “export LD_LIBRARY_PATH”.

Most of the examples now work (although BlackShoales and a few others have out of memory errors) .