User Tools

Site Tools


python-install

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

The Python binding is available for both Python2 (tested with version 2.7 only) and Python3 (tested with version 3.4). Instructions depend on the Python version. ======== Build and install the Python 2 binding of the ROHC library from sources ======== The instructions hereafter are for native build on Unix-like systems, such as [[wp>Linux|Linux]], [[wp>FreeBSD]], or [[wp>OpenBSD]]. - Log in as normal user on the system on which you want to install the Python binding of the ROHC library. - [[library-install-sources|Build and install of the ROHC library]] from sources. - Install the swig dependency:<code> $ su # yum install swig # for RHEL/CentOS # apt-get install swig # for Debian/Ubuntu # emerge -av swig # for Gentoo # exit</code> - Install the Python dependencies:<code> $ su # pip2 install future # exit</code> - Build the Python binding:<code> $ cd contrib/python/ $ python2 setup.py build</code> - Install the Python binding:<code> $ su # python2 setup.py install # exit</code> The Python2 binding of the ROHC library is installed, you may now [[python-usage|use it]]. ======== Build and install the Python 3 binding of the ROHC library from sources ======== The instructions hereafter are for native build on Unix-like systems, such as [[wp>Linux|Linux]], [[wp>FreeBSD]], or [[wp>OpenBSD]]. - Log in as normal user on the system on which you want to install the Python binding of the ROHC library. - [[library-install-sources|Build and install of the ROHC library]] from sources. - Install the swig dependency:<code> $ su # yum install swig # for RHEL/CentOS # apt-get install swig # for Debian/Ubuntu # emerge -av swig # for Gentoo # exit</code> - Install the Python dependencies:<code> $ su # pip3 install future # exit</code> - Build the Python binding:<code> $ cd contrib/python/ $ python3 setup.py build</code> - Install the Python binding:<code> $ su # python3 setup.py install # exit</code> The Python3 binding of the ROHC library is installed, you may now [[python-usage|use it]].

python-install.1452541537.txt.gz · Last modified: 2016/01/11 19:45 by didier