Trying to build pyOpenSSL,
Receiving this error message:
mnystrom@xianshield:~/pyOpenSSL-0.5.1> python setup.py
build
running build
running build_py
not copying ./__init__.py (output up-to-date)
not copying ./__init__.py (output up-to-date)
not copying ./tsafe.py (output up-to-date)
running build_ext
building 'OpenSSL.crypto' extension
gcc -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -O2
-m32 -mtune=ultrasparc -fPIC -I/usr/include/python2.1
-c src/crypto/crypto.c -o
build/temp.linux-sparc64-2.1/crypto.o
src/crypto/crypto.c:11: Python.h: No such file or directory
In file included from src/crypto/crypto.c:13:
src/crypto/crypto.h:16: Python.h: No such file or directory
In file included from src/crypto/crypto.h:17,
from src/crypto/crypto.c:13:
src/crypto/x509.h:16: Python.h: No such file or directory
In file included from src/crypto/crypto.h:18,
from src/crypto/crypto.c:13:
src/crypto/x509name.h:16: Python.h: No such file or
directory
In file included from src/crypto/crypto.h:19,
from src/crypto/crypto.c:13:
src/crypto/x509store.h:14: Python.h: No such file or
directory
In file included from src/crypto/crypto.h:20,
from src/crypto/crypto.c:13:
src/crypto/x509req.h:14: Python.h: No such file or
directory
In file included from src/crypto/crypto.h:22,
from src/crypto/crypto.c:13:
src/crypto/x509ext.h:14: Python.h: No such file or
directory
In file included from src/crypto/crypto.h:23,
from src/crypto/crypto.c:13:
src/crypto/pkcs7.h:14: Python.h: No such file or directory
In file included from src/crypto/crypto.h:24,
from src/crypto/crypto.c:13:
src/crypto/pkcs12.h:13: Python.h: No such file or directory
In file included from src/crypto/crypto.h:25,
from src/crypto/crypto.c:13:
src/crypto/../util.h:16: Python.h: No such file or
directory
In file included from src/crypto/../util.h:23,
from src/crypto/crypto.h:25,
from src/crypto/crypto.c:13:
src/crypto/../pymemcompat.h:9: Python.h: No such file
or directory
error: command 'gcc' failed with exit status 1
Where should it look for python.h ?
Logged In: YES
user_id=324533
You may search for Python.h (with a capital P)
somewhere like this:
/usr/include/python2.2/Python.h
Logged In: YES
user_id=1544807
Python.h comes with python-dev in Debian/Ubuntu/[Put any
Debian fork here].
# apt-get install python-dev
Logged In: YES
user_id=366566
Originator: NO
Once the Python headers are available, this will work.