Muhammad Mudassir

I know a thing or two about computer-vision, bigdata, Android, ML, RTC and IOT.

Building Ejabberd From Source Code

30 Jun 2017 » xmpp, erlang

Recently we went through the deployment of Ejabberd in my previous blog post. If you want to add your own modules to ejabberd server you will need to build the source code of Ejabberd. Here is how i did it.

1. GET EJABBERD REPO

sudo apt-get install git
cd ~
git clone https://github.com/processone/ejabberd.git

2. INSTALL AUTOMAKE AND GENERATE A CONFIGURE FILE

sudo apt-get install automake
cd ejabberd/
./autogen.sh

3. EJABBERD WILL NEED ERLANG INSTALL IT

wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb

wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc

sudo apt-get update
sudo apt-get install erlang

4. ERLANG SOURCE ALSO NEEDS C++ AND RUN THR CONFIGURE SCRIPT IN EJABBERD DIR

sudo apt-get install build-essential

./configure

5. INSTALL THE FOLLOWING DEPENDENCIES

sudo apt-get install libssl-dev
sudo apt-get install libyaml-dev
sudo apt-get install libexpat1-dev

6. INSTALL

Inside the Ejabberd directory enter the following commands

make
make install

Related Posts : https://gist.github.com/dirkmoors/4acc602fedffe4768f39

http://www.blikoontech.com/networking/how-to-install-ejabberd-on-linux-ubuntu

https://alexpetroaica.wordpress.com/2015/09/17/how-to-compile-ejabberd-from-sources/

Related Posts