![]() ![]() |
Apr 10 2009, 07:51 PM
Post
#1
|
|
![]() ![]() ![]() Group: Members Posts: 34 Joined: 31-March 09 Member No.: 148,383 |
When I compiled clock in its directory by typing make everything went fine. When I went to the executables directory
and typed ./clock ,well I got what is seen below. james ~/NVIDIA_CUDA_SDK/bin/linux$ ls emurelease release james ~/NVIDIA_CUDA_SDK/bin/linux$ cd emurelease james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ls clock james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ./clock ./clock: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ echo $PATH /usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ echo $LD_LIBRARY_PATH /usr/local/cuda/lib:/etc/ld.so.conf: james ~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ I have echoed my $PATH and my $LD_LIBRARY_PATH as seen above. I know this problem has been discussed before on the forum. I think my paths a correct and the file libcudart.so.2: is in the directory /usr/local/cuda/lib It still is not finding it. Notice libcudart.so.2 is in my $LD_LIBRARY_PATH I am unsure as to what is causing this error. Any help appreciated. I know this has been discussed before. Newport_j |
|
|
|
Apr 10 2009, 08:01 PM
Post
#2
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: NVIDIA Employees Posts: 2,073 Joined: 3-June 08 From: Santa Clara, CA Member No.: 106,363 Org.: NVIDIA |
why do you have that weird /etc/ld.so.conf entry in your LD_LIBRARY_PATH?
copy and paste the output of ldd ./clock from that directory |
|
|
|
Nov 7 2009, 06:41 PM
Post
#3
|
|
![]() Group: Members Posts: 1 Joined: 7-November 09 Member No.: 244,588 Club SLI Member: No |
Maybe it's just me, but I had the same problem. Worked when I set LD_LIBRARY_PATH in .bashrc and then exported it. Regards. |
|
|
|
![]() ![]() |
| Copyright 2008 NVIDIA Corporation. Terms of Use | Legal Info | Privacy Policy | Time is now: 24th November 2009 - 01:05 AM |