Issues compiling pjsip and pysua on centos 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I went through the mailing list archives for the entire 2017. No one seems to have issues compiling so i must be doing something stupid.
I am trying to write a python app to do sip testing.


$cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

$uname -a
Linux extmon001 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 

$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


Anyone have ran into similar issues?

--
Allen Michael Chan
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux