Installing OpenSIPS 1.6.4 on CentOS 5.5 with mi-xmlrpc

User Rating: / 1
PoorBest 

Tutorial: Installing OpenSIPS 1.6.4 on CentOS 5.5 with mi-xmlrpc

Recently, I heard from some people that is difficult to install OpenSIPS, mainly the mi_xmlrpc module on CentOS. Some servers do not support Debian or Ubuntu,where the compilation process is quite simple, but in most cases they support RedHat and CentOS. The instructions below are valid for both. Using the preinstalled operating system is sometimes valuable because of the tech support and improved drivers. The objective of this tutorial is to show how to compile successfully OpenSIPS on CentOS. This configuration was tested with CentOS 5.5.

 

The installation process is described step by step below:

Step 1: install the dependencies.

yum install gcc gcc-c++ bison flex zlib-devel openssl-devel mysql-devel subversion pcre-devel

Step 2: Download the OpenSIPS source from the svn repository.

cd /usr/src svn co https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6 opensips_1_6

Step 3: Compile the library xmlrpc-c

wget http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c_Stable_1.06.41/xmlrpc-c-1.06.41.tgz
tar -xzvf xmlrpc-c-1.06.41.tgz
cd xmlrpc-c-1.06.41
./configure --disable-abyss-threads
make
make install

Step 4: Insert the xmlrpc libraries in the ld.config

cd /etc/ld.so.conf.d

vi xmlrpc.conf (create a new file and insert the line below)
/usr/local/lib

ldconfig –v |more

(check if the libraries at /usr/loca/lib are being added)

You are going to receive a warning about the version of xmlrpc-c. Ignore-it, in the newer versions is safe to compile the stable version with threads disabled.

Step 5: Use your favorite Linux editor to edit the Makefile

Remove from the “Exclude=” (line 52) the modules db_mysql and mi_xmlrpc. This will make the compilation process include the modules db_mysql and mi_xmlrpc.

cd /usr/src/opensips_1_6 vi Makefile

Step 6: Compile and install the core and modules.

cd opensips_1_6
make prefix=/ all
make prefix=/ install

Tags OpenSIP - CentOS - xmlrpc - mi_xmlrpc