rdavydov / pyrit

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

Compiling Problems on new Ubuntu. #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Extract cpyrit-cuda-0.3.0
2.python setup.py build
3.

What is the expected output? What do you see instead?
root@alex-desktop:/home/alex# cd Desktop
root@alex-desktop:/home/alex/Desktop# cd cpyrit-cuda-0.3.0
root@alex-desktop:/home/alex/Desktop/cpyrit-cuda-0.3.0# python setup.py build
running build
running build_ext
Compiling CUDA module using nvcc 3.1, V0.2.1221...
ptxas info    : Compiling entry function 'cuda_pmk_kernel' for 'sm_10'
ptxas info    : Used 42 registers, 16+16 bytes smem, 12 bytes cmem[1]
Building modules...
building 'cpyrit._cpyrit_cuda' extension
creating build
creating build/temp.linux-x86_64-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-x86_64-2.6/_cpyrit_cuda.o -DVERSION="0.3.0"
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/cpyrit
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.6/_cpyrit_cuda.o -lssl -lcuda -lz -o 
build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_cuda.so
/usr/bin/ld.bfd.real: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
root@alex-desktop:/home/alex/Desktop/cpyrit-cuda-0.3.0# 

What version of the product are you using? On what operating system?
I am using Pyrit and Cpyrit 0.3.0 on Ubuntu 10.04 x64bit

Please provide any additional information below.
GPU: GTX 470

Original issue reported on code.google.com by Alex13...@gmail.com on 31 Aug 2010 at 6:47

GoogleCodeExporter commented 8 years ago
libcuda.so is usually not reachable by default library search paths. These 
files usually get installed to /usr/lib[64]/nvidia/...

You may either symlink libcuda.so to /usr/lib[64] or modify your LDPATH.

Original comment by lukas.l...@gmail.com on 31 Aug 2010 at 7:00

GoogleCodeExporter commented 8 years ago

Original comment by lukas.l...@gmail.com on 31 Aug 2010 at 7:00