linux - P4API.cpp:39:20: fatal error: Python.h: No such file or directory -


getting fatal error while installing p4python on linux machine.

configuration:

python 2.7.5 os : fedora

below message getting while installing "p4python":

 $ pip install p4python creating build/lib.linux-x86_64-2.7  copying p4.py -> build/lib.linux-x86_64-2.7  running build_ext  building 'p4api' extension  creating build/temp.linux-x86_64-2.7  gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -fpic -did_os="linux31x86_64" -did_rel="2015.1.main" -did_patch="1058604" -did_api="2015.1/1054991" -did_y="2015" -did_m="05" -did_d="12" -i/tmp/p4api-2015.1.1054991 -i/tmp/p4api-2015.1.1054991/include/p4 -i/usr/include/python2.7 -c p4api.cpp -o build/temp.linux-x86_64-2.7/p4api.o -dos_linux -dos_linux31 -dos_linuxx86_64 -dos_linux31x86_64  p4api.cpp:39:20: fatal error: python.h: no such file or directory   #include <python.h>                      ^  compilation terminated.  error: command 'gcc' failed exit status 1  ---------------------------------------- 

you need install python header files like:

 yum install python-devel 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -