santolp / pyrit

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

cpyrit cannot find -lcuda #445

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Pyrit 
2. Install Cuda Toolkit 5.5
3. Build Cpyrit.py 

What is the expected output? What do you see instead?

The expect output will be no errors but i got this 

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.7 -c 
_cpyrit_cuda.c -o build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -DVERSION="0.3.0"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 
build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -lssl -lcuda -lz -o 
build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

cpyrit 0.3.0 

Please provide any additional information below.

i think maybe im missing something before of building, i already search here 
and other page and i not see another issue like thist only with ATI graphics 
cards, i run the command locate cuda.so and the oputut say that cannot find 
cuda.so, my nvidia drivers are 304.88 there are not the last i don't know if 
this can be the origin of the problem

this is the link were i download the cuda toolkit 
http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22
_linux_64.run 

my os is Debian 7 amd_64 my graphics card is Nvidia Geforce GTX 550 TI

thanks for the possible help, sorry for the bad English 

Original issue reported on code.google.com by vmoss...@gmail.com on 11 Feb 2014 at 7:13

GoogleCodeExporter commented 8 years ago
I had the same trouble. Found answer here: 
https://devtalk.nvidia.com/default/topic/505075/cannot-find-lcuda-on-ubuntu-11-0
4/. Quoted below solution that helped me\|/

Depending on what drivers you have installed, the libcuda.so and so.1 files 
will be located in slightly different places in Ubuntu. For example, 
/usr/lib/nvidia-current or /usr/lib/nvidia-current-updates on 11.10 (you should 
be able to find them at any rate.) The easiest way to point the compiler to the 
correct libs (IMO) is to symlink them from a more obvious location:

 sudo ln -s /usr/lib/nvidia-location/libcuda.so /usr/lib/libcuda.so

 sudo ln -s /usr/lib/nvidia-location/libcuda.so1 /usr/lib/libcuda.so1

 Hope this helps,

 Best,

 Graham

Original comment by vitaali...@gmail.com on 22 Feb 2014 at 7:16