Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-07-12, 11:49 PM   #1
ivoniko
Registered User
 
Join Date: Mar 2012
Posts: 3
Default /usr/bin/ld: cannot find -lcuda

I tried installing Cuda Toolkit fro Ubuntu Linux 10.04 32-bit as part of my Pyrit install(as found on this blog: http://j2neon.blogspot.com) and it failed almost at the end just before finishing after entering:

root@bt: ~/pyrit_svn/cpyrit_cuda# python setup.py build

I got the following error at the bottom:

/usr/bin/ld: cannot find -lcuda
collect2: ld returned l exit status
error: command 'gcc' failed with exit status 1

Since I'm a complete newb and I've never used Linux before I'm stuck and have no idea how to fix this although feel like it's something quite simple. Would appreciate any help or advice.
ivoniko is offline   Reply With Quote
Old 03-08-12, 10:45 PM   #2
Citanul
Registered User
 
Join Date: Mar 2012
Posts: 3
Default Re: /usr/bin/ld: cannot find -lcuda

I am new to Linux (Backtrack 5 r2 KDE x64) and recently I have also been trying to install Cuda/Pyrit on my computer using this guide: http://www.backtrack-linux.org/forum...ad.php?t=48510

Everything goes well with the installation of Cuda and Pyrit as far as I can tell but when I try to set the two of them up together this is what I get...

root@bt:~# cd pyrit/pyrit/
root@bt:~/pyrit/pyrit# cd ../cpyrit_cuda/
root@bt:~/pyrit/cpyrit_cuda# python setup.py build
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c _cpyrit_cuda.c -o build/temp.linux-x86_64-2.6/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
root@bt:~/pyrit/cpyrit_cuda#


Any help here would be greatly appreciated.
Citanul is offline   Reply With Quote
Old 03-09-12, 02:18 AM   #3
ivoniko
Registered User
 
Join Date: Mar 2012
Posts: 3
Default Re: /usr/bin/ld: cannot find -lcuda

Here's also all I get, everything looks fine up to the last 3 lines:

root@bt:~/pyrit_svn/cpyrit_cuda# python setup.py build
running build
running build_ext
Compiling CUDA module using nvcc 3.2, V0.2.1221...
Executing '/usr/local/cuda/bin/nvcc -m32 --host-compilation C -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : option 'host-compilation' has been deprecated and is ignored
Building modules...
building 'cpyrit._cpyrit_cuda' extension
creating build
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c _cpyrit_cuda.c -o build/temp.linux-i686-2.6/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/cpyrit
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-i686-2.6/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
ivoniko is offline   Reply With Quote
Old 03-09-12, 04:43 PM   #4
Citanul
Registered User
 
Join Date: Mar 2012
Posts: 3
Default Re: /usr/bin/ld: cannot find -lcuda

Ok someone helped me find the fix for this in another forum, its actually pretty simple.

Remove the nvidia driver you have installed and then install the CUDA 285.05.33 driver found here

I didnt reinstall CUDA, i just did the ldconfig after installing the new graphics driver and then resumed my CUDA/Pyrit installation where I got stuck.
Citanul is offline   Reply With Quote
Old 03-09-12, 05:29 PM   #5
ivoniko
Registered User
 
Join Date: Mar 2012
Posts: 3
Default Re: /usr/bin/ld: cannot find -lcuda

Thanks for helping with this. I posted on several places as well but no one has replied so far.

I don't think I ever downloaded Nvidia driver, the Pyrit download instructions I followed did not mention anything about downloading Nvidia Driver, only the Cuda Toolkit.

I'm not sure what ldconfig is and how to do it.
ivoniko is offline   Reply With Quote
Old 03-09-12, 09:32 PM   #6
Citanul
Registered User
 
Join Date: Mar 2012
Posts: 3
Default Re: /usr/bin/ld: cannot find -lcuda

Here check this out, its an install guide for Cuda/Pyrit/Nvidia Drivers
Citanul is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:16 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.