$sudo wget http://www.pjsip.org/release/2.7.1/pjproject-2.7.1.tar.bz2
$sudo bunzip2 pjproject-2.7.1.tar.bz2
$sudo tar -xvf pjproject-2.7.1.tar
$cd pjproject-2.7.1
$sudo yum install gcc
$sudo ./configure && make dep && make clean && make
$cd /root/pjproject-2.7.1/pjsip-apps/src/python
$sudo ln -s /usr/bin/python3.6 /usr/bin/python3
$python3 -V
Python 3.6.3
$sudo make
python setup.py build
running build
running build_py
running build_ext
building '_pjsua' extension
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 -DPJ_AUTOCONF=1 -Imake[1]: Entering directory `/root/pjproject-2.7.1/pjsip-apps/src/python' -I/root/pjproject-2.7.1/pjlib/include -I/root/pjproject-2.7.1/pjlib-util/include -I/root/pjproject-2.7.1/pjnath/include -I/root/pjproject-2.7.1/pjmedia/include -I/root/pjproject-2.7.1/pjsip/include -Imake[1]: Leaving directory `/root/pjproject-2.7.1/pjsip-apps/src/python' -I/usr/include/python2.7 -c _pjsua.c -o build/temp.linux-x86_64-2.7/_pjsua.o
In file included from _pjsua.c:20:0:
_pjsua.h:25:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1
$sudo python3 ./setup.py install
File "./setup.py", line 36
if len(tokens)>1:
^
TabError: inconsistent use of tabs and spaces in indentation
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org