A problem when running a example....

Hi all… When I run a example under <SDK_INSTALL_PATH>/bin/linux/release

got an error:

./matrixMul: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory

Help… Thank you…

and I have sudo ldconfig,… My OS is Ubuntu 8.10 amd64…

who can help me~~~~

[quote name=‘kaven_sdu’ post=‘520972’ date=‘Mar 21 2009, 07:28 AM’]

Hi all… When I run a example under <SDK_INSTALL_PATH>/bin/linux/release

got an error:

[codebox]include /etc/ld.so.conf.d/*.conf

/opt/cuda/lib

[/codebox]

and then run ldconfig

or modify your LD_LIBRARY_PATH variable to include the cuda/lib directory. eg

[codebox]export LD_LIBRARY_PATH="/opt/cuda/lib/:$LD_LIBRARY_PATH"[/codebox]

hope it helps.

hello,

i have the same problem on my fedora 10.

the problem is due to selinux.

So to solve the problem , try the following command [chcon -t textrel_shlib_t ‘/usr/local/cuda/lib/libcudart.so.2.1’ ]

for me it solve the problem.

best regards

tocyx