Error while loading shared library libcudart.so.2

Hello,

I’m trying to use:
NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
NVIDIA_CUDA_Toolkit_2.0_Fedora8_x86.run
NVIDIA-Linux-x86-177.73-pkg1.run
on Fedora 8.

All the makes run fine, but when I try to run any examples or my project, for example:

[root@localhost myproject]# /root/NVIDIA_CUDA_SDK/bin/linux/release/myproject

at console appears the next error massage:

/root/NVIDIA_CUDA_SDK/bin/linux/release/myproject: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory

I’ve followed the release instructions and revised previous comments in this forum. I tried add
/usr/local/cuda/lib to /etc/ld.so.conf, but it doesn’t work.

If some one have any suggestion, please send me it.

thanks in advance,
Gerardo

Are you running Fedora8?
Did you run “ldconfig” as root before attempting the build?

After you added /usr/local/cuda/lib to /etc/ld.so.conf, did you run ldconfig? Also, make sure you have SELinux off, because SELinux basically ruins everything.

Dear colleagues, you two are right. Effectively, after tun off Selinux and run ldconfig, all run fine.

THANK YOU VERY MUCH!!! External Image

I am having this exact same problem, however after disabling SE linux and running ldconfig, i am still having the same problem. I disabled SE linux through the SELinux administration application under Fedora 10 KDE. EDIT: This was resolved, I had the LD_LIBRARY_PATH misspelled.

So, the SELinux “ruins” only the SDK examples, or the whole toolkit? Isn’t there a way to work along with SELinux?