brktrksvr / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

/usr/bin/ld: cannot find -lcuda #390

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 endjsut before finishing after entering:

B?root@bt: ~/pyrit_svn/cpyrit_cuda# python setup.py build[/B]

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.

Original issue reported on code.google.com by ivove...@gmail.com on 8 Mar 2012 at 5:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Try first to create a link for libcuda.so in /usr/lib or then add these 
variables to your ~/.bashrc.

sudo ln -s /usr/lib/nvidia-current/libcuda.so /usr/lib/libcuda.so
The first path could be different, if you installed nvidia driver not from the 
repository (with apt-get).
You'll find it with the search.

gedit ~/.bashrc
export PATH="<CUDA_INSTALL_PATH>/:$PATH"
export LD_LIBRARY_PATH="<CUDA_INSTALL_PATH>/lib"
export CUDA_INSTALL_PATH="<CUDA_INSTALL_PATH>/" 

If the first solution not help then try the second.
It can be slightly different from system to system.

Original comment by mcposs...@gmail.com on 12 Apr 2012 at 7:14