Installing OpenSIPs-1.10beta on Ubuntu 12.04

  1. Resolve Dependencies
  2. For Ubuntu
    $ apt-get install build-essential openssl bison flex mysql-server libmysqlclient16 libmysqlclient-dev libsctp-dev openssl libssl-dev libradiusclient-ng-dev libxml2-dev libxml2 libconfuse0 libconfuse-dev libdb-dev libcurl4-gnutls-dev libcurl3 libpostgresql-ocaml-dev libpq-dev unixodbc-dev libpcre3-dev libexpat1-dev libjson0-dev libmemcached-dev libmemcache-dev libxmlrpc-c3-dev libgeoip-dev python-dev libsnmp-dev
    
    For CentoOS
    yum groupinstall "Development Tools"
    yum install ncurses-devel.x86_64 libmicrohttpd-devel.x86_64 openssl openssl-devel.x86_64
    
    1. Download latest opensips from www.opensips.org or for opensips-1.10beta use the following command
    $ wget http://opensips.org/pub/opensips/latest/src/opensips-1.10_src.tar.gz
    
    1. Use "tar -zxvf" to extract opensips tar file
    $ tar -zxvf opensips-1.10_src.tar.gz
    
    1. go into the directory
    $ cd opensips-1.10.0beta-tls
    
    1. make the configuration file
    $ make menuconfig
    --> Configure Compile Options
    --> Configure Excluded Modules
    
    1. Select the modules to be loaded
    --> Configure Install Prefix
        /usr/local/
    --> Save Changes
    --> Compile And Install OpenSIPS
    --> Exit & Save All Changes
    
    1. If you want to configure opensips with Database then do the changes in the following file
    $ vim /usr/local/etc/opensips/opensipsctlrc
    
    # If you want to setup a database with opensipsdbctl, you must at least specify
    # this parameter.
    DBENGINE=MYSQL
    
    ## database host
    DBHOST=localhost
    
    ## database name (for ORACLE this is TNS name)
    DBNAME=opensips
    
    # database path used by dbtext or db_berkeley
    # DB_PATH="/usr/local/etc/opensips/dbtext"
    
    ## database read/write user
    DBRWUSER=opensips
    
    ## password for database read/write user
    DBRWPW="opensips"
    
    1. Go to Install prefix directory /usr/local/sbin/
    $ ./opensipsdbctl create
    $ ./opensipsctl start
    
    ********************************* PROBLEMS ***********************************
    evi/../lock_alloc.h:60:2: error: #error "locking requires shared memory support"
    
    Add line following line in Makefile
    DEFS+= -DSHM_MEM
    
    Enjoy ;)

No comments:

Post a Comment

How to compile and run a next application ?

Install nodejs Use  this  link for further reading curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash nvm inst...