Skip to content

Instantly share code, notes, and snippets.

@yzf
Last active August 20, 2016 11:17
Show Gist options
  • Save yzf/b9548fbf1d6c39ecf54de5d0371cc44e to your computer and use it in GitHub Desktop.
Save yzf/b9548fbf1d6c39ecf54de5d0371cc44e to your computer and use it in GitHub Desktop.
搭建ejabberd的开发环境
# add to /etc/apt/sources.list
deb https://packages.erlang-solutions.com/debian jessie contrib
# install erlang from erlang-solution
apt-get install apt-transport-https
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
apt-key add erlang_solutions.asc
apt-get update
apt-get install esl-erlang
# install other deps
apt-get install autoconf libssl-dev libyaml-dev libexpat-dev build-essential
# set en_US.UTF-8
# add LANGUAGE=en_US.UTF-8 and LC_ALL=en_US.UTF-8 to /etc/environment
echo "LANGUAGE=en_US.UTF-8" >> /etc/environment
echo "LC_ALL=en_US.UTF-8" >> /etc/environment
# compile ejabberd
autogen.sh
# in 16.08 if not enable elixir, there will be error when runnig ejabberd even though it can work correctly
./configure --enable-user=yzf --enable-elixir --prefix=/home/yzf/Software/ejabberd
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment