problem with Fedora 8 runtime error...

hi…
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: libcudart.so.2: 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 libcuda.so) 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.

PATH=$PATH:<CUDA_INSTALL_PATH>/bin

    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<CUDA_INSTALL_PATH>/lib

    export PATH

    export LD_LIBRARY_PATH

Regards

Jörg