nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   /usr/bin/ld: cannot find -lcuda (http://www.nvnews.net/vbulletin/showthread.php?t=175777)

ivoniko 03-07-12 10:49 PM

/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.

Citanul 03-08-12 09:45 PM

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.

ivoniko 03-09-12 01:18 AM

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

Citanul 03-09-12 03:43 PM

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.

ivoniko 03-09-12 04:29 PM

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.

Citanul 03-09-12 08:32 PM

Re: /usr/bin/ld: cannot find -lcuda
 
Here check this out, its an install guide for Cuda/Pyrit/Nvidia Drivers


All times are GMT -5. The time now is 03:00 AM.

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