jslhs / pyrit

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

_cpyrit_cuda.c:39: fatal error: Python.h: No such file or directory #294

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to compile on Ubuntu 10.1 and get the following error.

/cpyrit-cuda-0.4.0$ sudo python setup.py build
svn: '.' is not a working copy
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.0"
_cpyrit_cuda.c:39: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

any help would be appreciated 

Original issue reported on code.google.com by spliff...@googlemail.com on 7 Apr 2011 at 12:13

GoogleCodeExporter commented 8 years ago
You need the header files for Python, libpcap, openssl and libz as the README 
says.

Original comment by lukas.l...@gmail.com on 7 Apr 2011 at 8:46

GoogleCodeExporter commented 8 years ago
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version.
openssl is already the newest version.
zlib-bin is already the newest version.
zlibc is already the newest version.
libpcap0.8 is already the newest version.

python setup.py install
svn: '.' is not a working copy
running install
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.0"
_cpyrit_cuda.c:39: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Original comment by spliff...@googlemail.com on 7 Apr 2011 at 11:35