Difference between revisions of "Compile OpenSER"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 5: | Line 5: | ||
Siapkan software pendukung | Siapkan software pendukung | ||
− | # apt-get install flex bison gcc make | + | # apt-get install flex bison gcc make libperl5.8 libperl-dev libxmlrpc-c3 libxmlrpc-c3-dev \ |
− | + | unixodbc unixodbc-dev libradiusclient-ng2 libradiusclient-ng-dev libxml2 openssl libsctp1 libsctp-dev \ | |
− | + | libexpat1 libexpat1-dev libldap-2.4-2 libldap2-dev libsnmp15 libsnmp-dev libconfuse0 libconfuse-dev \ | |
− | + | libmysqlclient15off libmysqlclient15-dev mysql-client-5.0 mysql-server zlib1g zlib1g-dev | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Jika kita ingin menggunakan PostgresQL | + | Jika kita ingin menggunakan PostgresQL, kita perlu menginstalasi PostgresQL melalui perintah |
# apt-get install libpq5 libpq-dev | # apt-get install libpq5 libpq-dev |
Revision as of 08:40, 21 May 2008
Menginstalsi OpenSER dengan cara mengcompile jauh lebih sulit daripada menginstalasi menggunakan apt-get install. Sayangnya untuk OpenSER versi 1.3.x tampaknya lebih aman di jalankan dengan cara mengcompile.
Siapkan software pendukung
# apt-get install flex bison gcc make libperl5.8 libperl-dev libxmlrpc-c3 libxmlrpc-c3-dev \ unixodbc unixodbc-dev libradiusclient-ng2 libradiusclient-ng-dev libxml2 openssl libsctp1 libsctp-dev \ libexpat1 libexpat1-dev libldap-2.4-2 libldap2-dev libsnmp15 libsnmp-dev libconfuse0 libconfuse-dev \ libmysqlclient15off libmysqlclient15-dev mysql-client-5.0 mysql-server zlib1g zlib1g-dev
Jika kita ingin menggunakan PostgresQL, kita perlu menginstalasi PostgresQL melalui perintah
# apt-get install libpq5 libpq-dev
Ambil source code dari
http://www.openser.org/pub/openser/latest/src/ http://www.openser.org/pub/openser/1.3.1/src/
Jika anda tidak menggunakan TLS, lakukan
# cp openser-1.3.1-notls_src.tar.gz /usr/local/src/ # cd /usr/local/src/ # tar zxvf openser-1.3.1-notls_src.tar.gz # cd openser-1.3.1-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
Jika anda ingin menginstalasi OpenSER di folder /usr/sbin, maka sebaiknya kita install menggunakan perintah
# make prefix=/usr/ install
Jika anda ingin agar modul "mysql", "textops" dan "sl" di compile lakukan
# make include_modules="mysql textops sl" modules
Cara lain, copy openser* di /usr/local/sbin ke /usr/sbin
# cp /usr/local/sbin/openser* /usr/sbin
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