-
Notifications
You must be signed in to change notification settings - Fork 67
Home
philpraxis edited this page Sep 13, 2010
·
3 revisions
Welcome to the pysctp wiki!
When building this native extension, if you get messages such as:
- python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
copying sctp.py → build/lib.linux-i686-2.5
running build_ext
building ‘_sctp’ extension
creating build/temp.linux-i686-2.5
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include -I/usr/include/python2.5 -c sctp.c -o build/temp.linux-i686-2.5/sctp.o
_sctp.c:8:20: error: Python.h: No such file or directory
In file included from _sctp.c:15:
sctp.h:74: error: redefinition of ‘struct sctpsetprim’
sctp.c:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute__’ before ‘*’ token
sctp.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute__’ before ‘*’ token
sctp.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute__’ before ‘*’ token
sctp.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_attribute__’ before ‘*’ token
…
It means you need to install python-dev package, e.g.:
apt-get install python-dev