Error while loading shared library


I’m trying to use:
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: 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/, but it doesn’t work.

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

thanks in advance,

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

After you added /usr/local/cuda/lib to /etc/, 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!!! :thumbup:

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?