problem with Fedora 8 runtime error...

I am new to CUDA environment. I have installed Cuda compiler and SDK in Fedora 8. The sample program is compiling but is giving a runtime error. The error message is “./a.out: error while loading shared libraries: cannot open shared object file: No such file or directory”. Can anyone help me regarding this.

you need to set LD_LIBRARY_PATH to include /usr/local/cuda/lib.

Hi, did you add the respective Path and library variable as stated in the manual (copy below)?

Make sure that you add the location of the CUDA binaries (such as nvcc) to

your PATH environment variable and the location of the CUDA libraries

(such as to your LD_LIBRARY_PATH environment variable.

In the bash shell, one way to do this is to add the following lines to the

file .bash_profile in your home directory.



    export PATH

    export LD_LIBRARY_PATH