libcudart.so.3 error

Hi,

I have recently installed cuda toolkit and sdk on ubuntu 9.04. As there were some problems with gcc-4.4, so I installed an alternative gcc-3.4 version. Now I have installed cuda toolkit and sdk without any errors but when I try to run deviceQuery, it gives the following error

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

I have tried to set the path variables too but still did’nt work.
Any help would be highly appreciated

M. Awais

You need to set LD_LIBRARY_PATH to point to wherever the toolkit libraries are installed (by default /usr/local/cuda/lib or /usr/local/cuda/lib64 depending on whether you are using a 32 or 64 bit system).