How to install Kannel on Ubuntu

Kannel is a compact and very powerful open source WAP and SMS gateway, used widely across the globe both for serving trillions of short messages (SMS), WAP Push service indications and mobile internet connectivity.

In this post we will install Kannel in few minutes, just follow those steps:

  1. First you need to download the Kannel source from their website. Download.
  2. Now you will need to install Gnome-xml aka libxml. I would recommend download the source and follow the next steps for installation. Download. ( download the latest version would work on your machine, ex: libxml2-2.7.2.tar.gz ).
    1. extract the downloaded file from terminal, tar xzvf libxml2-2.7.2.tar.gz .
    2. cd libxml2-2.7.2
    3. Type ./configure
    4. Type make
    5. Type make install —> And now you have libxml
  3. To continue with the installation of kannel, you need to extract the downloaded folder.
  4. Type ./configure –> you will get a message saying thank you for using Kannel.
  5. Type touch .depend
  6. Type make depend
  7. Type make
  8. Type sudo make bindir=/somewhere/suitable install  —-> Enter your root password.

Next you need to configure the Gateway using this guide. I’m still figuring it out and will post my hello world application along with any useful information I reach.

Here is Kannel FAQ page for any questions you may have in mind

That’s it.

11 thoughts on “How to install Kannel on Ubuntu

  1. for centos
    Kannel installation

    1. wget
    2. tar -xvzf gateway-1.4.3.tar.gz
    3. cd gateway-1.4.3
    4. ./configure –with-mysql –with-mysql-dir=/var/lib/mysql –enable-start-stop-daemon
    5. make
    6. make install

    Make sure no errors are shown with steps 4,5,6. Install the missing packages using yum.

    Sqlbox installation

    1. wget
    2. tar -xvzf sqlbox-0.7.2.tar.gz
    3. cd sqlbox-0.7.2
    4. ./bootstrap
    5. ./configure
    6. make
    7. make install
    8. Create files kannel.conf, sqlbox.conf in /usr/local/sbin/
    9. bearerbox -v 4 kannel.conf & => For starting bearerbox
    10. sqlbox -v 4 sqlbox.conf & => For starting sqlbox
    11. smsbox -v 4 kannel.conf & => For starting smsbox

    Kannel –
    Sqlbox –

    After installation, check the database; a sqlbox db would be automatically created and send a test message from the database through the purchased SMS account.


      • No you don’t have to buy it. it’s an open source technology.
        all you should do is connect your phone through USB port – figure out the port number –
        and make sure the phone has ( at request ) service in it. Many phones don’t. I used Sony Ericsson.

        Then edit the config file. that was about a year a go. so I don’t remember much details. But I believe I can find you the config file if you need it.


  2. Hi Mostafa,
    i am getting below mentioned error while make command after 5 step in sqlbox.

    # make
    make all-recursive
    make[1]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2′
    Making all in gw
    make[2]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2/gw’
    make[2]: Nothing to be done for `all’.
    make[2]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2/gw’
    make[2]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2′
    make[2]: Nothing to be done for `all-am’.
    make[2]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2′
    make[1]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2′

    Please Suggest ?


Got something to say!!!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s