May 24, 2022

How to install Kannel SMS gateway on ubuntu

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

Before Installing Kannel you will need to configure the following packages on your Ubuntu.

  1. Development Tools.
  2. libxml2.
  3. Bison 1.25.

In order to convert the documentation from DocBook (a mark-up language) to HTML and PostScript, you need some tools. Please find the command below:

sudo apt-get install openjade jadetex transfig imagemagick \
             docbook-dsssl docbook-utils

For Redis support DLR, you need to install hiredis on your Ubuntu.

In order to install Redis, first, download the Redis package from the URL

Redis Installation Process:-

Extract the Redis package with the command:-

tar xzf redis-5.0.5.tar.gz

then type

make install

After that go to utils directory

cd utils/

then go to deps directory to install hiredis

cd hiredis/
make install

if you find symbolic link error then only use this command:-

ln -s /usr/local/lib/ /lib64/

Now, After configuring all these packages let us follow the steps for installing kannel on Ubuntu

Step 1:- Download Kannel gateway from the URL:-

Step 2:- Extract the gateway using the following gateway.

unzip gateway-1.4.5

Step 3:- In order to configure kannel with Redis and Mysql follow the following command.

./configure --with-mysql --with-redis --enable-assertions --with-defaults                                                                                        =speed --disable-localtime --enable-start-stop-daemon --enable-pam

If you want to understand the command then read the Kannel user guide.

If you get the following error


ata/alligata`.log for errors && false)

kpathsea: Running mktexfmt jadetex.fmt

fmtutil: no info for format `jadetex'.

Check doc/alligata/alligata.log for errors

make: *** [doc/alligata/] Error 1

Then use the following command

./configure --with-mysql --with-redis --enable-assertions --with-defaults                                                                                        =speed --disable-localtime --enable-start-stop-daemon --enable-pam --disable-doc

Step 4:- Make Install

make install

Now you have successfully Installed Kannel on your Ubuntu.

The installed Kannel binary will be found in /usr/local/sbin directory

You can download the kannel configuration from the link below:-

In order to install kannel in centos 7 follow this article

If you need any help in SMS gateway configuration feel free to contact me at [email protected] or inbox me on facebook

If you like our article do support this page!

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: For Bulk, SMS-Marketing follows the link :

View all posts by Vedant Singh →

Leave a Reply

Your email address will not be published. Required fields are marked *


Ad Blocker Detected!

We've noticed that you are using an ad blocker. Advertising helps fund our server cost and keep it truly independent. It helps to build our content creator team. So please disable your ad blocker, and help us to keep providing you with free- great content - for free. Thank you for your support.