icelon / pyrit

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

-lcuda not found #332

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
I'm trying to compile cpyrit under Ubuntu 11.04. But I get an error message 
after entering "python setup.py build":
/usr/bin/ld: cannot find -lcuda
how can I fix that?
Thank you

Original issue reported on code.google.com by develope...@googlemail.com on 27 Jun 2011 at 7:52

GoogleCodeExporter commented 8 years ago
hi, 
did you add first CUDA drivers ???
and Nvidia drivers, not the Ubuntu drivers but the real one ?

;)
Laurent W.

Original comment by laurent....@gmail.com on 27 Jun 2011 at 8:06

GoogleCodeExporter commented 8 years ago
There are numerous posts about this. The driver and it's libraries are usually 
installed to /usr/lib[64]/nvidia. You need to either symlink libcuda.so to 
/usr/lib[64] or add /usr/lib[64]/nvidia to the linker's search path.

Original comment by lukas.l...@gmail.com on 28 Jun 2011 at 7:16

GoogleCodeExporter commented 8 years ago
Issue 334 has been merged into this issue.

Original comment by lukas.l...@gmail.com on 7 Jul 2011 at 8:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
1) Install latest nvidia drivers and cuda toolkit.
2) Download latest version of pyrit from svn
3) Configure variables 
add this to ~/.bashrc :
export PATH="<CUDA_INSTALL_PATH>/:$PATH"
export LD_LIBRARY_PATH="<CUDA_INSTALL_PATH>/lib"
export CUDA_INSTALL_PATH="<CUDA_INSTALL_PATH>/" 
4) Run in terminal:
sudo ln -s /usr/lib/nvidia-current/libcuda.so /usr/lib/libcuda.so

I hope this helps you.

Original comment by miropeace on 3 Feb 2012 at 6:07