make出问题了 can't find the file

想请教一下:我费了一个周末的时间才装好device driver_3.2_linux_32_260.19.26.run,cudatoolkit_3.2.16_linux_32_ubuntu10.4.run,gpucomputingsdk_3.2.16_linux.run.现在我想试试我的平台是否安装成功,我的cuda的位置:/sur/local/cuda,我的gpucomputingsdk在:/root/NVIDIA_GPU_COMPUTING_SDK。当我编译deviceQuery成功后生成:deviceQuery.cpp.o,但是当我执行的时候:$ ./deviceQuery,出现如下错误提示:./deviceQuery: error while loading shared libraries: libcudart.so.3: cannot open shared object file: No such file or directory。后来我看了一下,其实libcudart.so.3是在/usr/local/cuda/lib当中,为什么会找不到呢?不明白,请高手指点一下,谢谢。

查/etc/ld.so.conf

åŠ /usr/local/cuda/lib

æˆ–è€…å¦‚æžœä½ æœ‰/etc/ldso.conf.d/ç›®å½•ï¼Œæ–°å»ºä¸€ä¸ªæ–‡ä»¶åŠ /usr/local/cuda/lib

åŠ å®ŒåŽè·‘ldconfig

请用英文,那么帮助来得快些

did you add

"

export PATH=$PATH:/usr/local/cuda/bin

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib

"

to the ~/.bashrc or the ~/.bash_profile ?