Closed kamal2222ahmed closed 12 years ago
here is the screenshot of the install: sudo python setup.py install [sudo] password for kahmed: running install running build running build_py creating build creating build/lib.linux-i686-2.7 copying sctp.py -> build/lib.linux-i686-2.7 running build_ext building '_sctp' extension creating build/temp.linux-i686-2.7 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include -I/usr/include/python2.7 -c _sctp.c -o build/temp.linux-i686-2.7/_sctp.o _sctp.c:8:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1
after i install : sudo apt-get install libsctp-dev and Change Makefile to reflect current Python version, i still get the same error:
Python version is 2.7.2
Found the Solution:
How To Fix: fatal error: Python.h: No such file or directory
To fix sudo apt-get install python-dev
here is the screenshot of the install: sudo python setup.py install [sudo] password for kahmed: running install running build running build_py creating build creating build/lib.linux-i686-2.7 copying sctp.py -> build/lib.linux-i686-2.7 running build_ext building '_sctp' extension creating build/temp.linux-i686-2.7 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include -I/usr/include/python2.7 -c _sctp.c -o build/temp.linux-i686-2.7/_sctp.o _sctp.c:8:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1
after i install : sudo apt-get install libsctp-dev and Change Makefile to reflect current Python version, i still get the same error:
Python version is 2.7.2