Compile OpenSER

From OnnoWiki
Revision as of 06:37, 11 March 2008 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Menginstalsi OpenSER dengan cara mengcompile jauh lebih sulit daripada menginstalasi menggunakan apt-get install. Sangat di sarankan untuk mengggunakan apt-get install.


Siapkan software pendukung

# apt-get install flex bison gcc make
# apt-get install libperl5.8 libperl-dev
# apt-get install libxmlrpc-c3 libxmlrpc-c3-dev
# apt-get install unixodbc unixodbc-dev
# apt-get install libradiusclient-ng2 libradiusclient-ng-dev
# apt-get install libxml2
# apt-get install openssl libsctp1 libsctp-dev
# apt-get install libexpat1 libexpat1-dev
# apt-get install libldap2 libldap2-dev
# apt-get install libsnmp10 libsnmp-dev
# apt-get install libconfuse0 libconfuse-dev
# apt-get install libmysqlclient15off libmysqlclient15-dev mysql-client-5.0 mysql-server
# apt-get install zlib1g zlib1g-dev

Jika kita ingin menggunakan PostgresQL

# apt-get install libpq5 libpq-dev

Ambil source code dari

http://www.openser.org/pub/openser/latest/src/

Jika anda tidak menggunakan TLS, lakukan

# cp openser-1.3.0-notls_src.tar.gz /usr/local/src/
# cd /usr/local/src/
# tar zxvf openser-1.3.0-notls_src.tar.gz
# cd openser-1.3.0-notls

Jika anda menggunakan TLS, lakukan

# cp openser-1.3.0-tls_src.tar.gz /usr/local/src/
# cd /usr/local/src/
# tar zxvf openser-1.3.0-tls_src.tar.gz
# cd openser-1.3.0-tls

Compile menggunakan perintah

# make
# make modules
# make install

Atau

# make && make modules && make install


Konfigurasi OpenSER

Semua file konfigurasi openser hasil compile terdapat di

/usr/local/etc/openser

Edit /usr/local/etc/openser/openser.cfg

# vi /usr/local/etc/openser/openser.cfg

Pastikan

modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")


Lakukan

# touch /tmp/openser_fifo



Pranala Menarik

Bold text