Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mindcrime/aeac89aa32d94366068a292fd2b527fd to your computer and use it in GitHub Desktop.
Save mindcrime/aeac89aa32d94366068a292fd2b527fd to your computer and use it in GitHub Desktop.
Build ejabberd from source on Fedora 35
#!/bin/bash
dnf -y install automake autoconf
dnf -y install erlang-rebar erlang-rebar3 erlang-relx
dnf -y install erlang-amf erlang-bear erlang-cache_tab erlang-compiler erlang-debugger erlang-doc erlang-eimp
dnf -y install zlib zlib-devel
dnf -y install openssl openssl-devel
dnf -y install libyaml libyaml-devel
dnf -y install gcc-c++ gcc
dnf -y install expat expat-devel
dnf -y install pam pam-devel
dnf -y install gd gd-devel
git clone https://github.com/processone/ejabberd.git
cd ejabberd
git fetch --all
git checkout 21.07
./autogen.sh
./configure --prefix=/usr/local
make
make install
chown ejabberd:ejabberd /usr/local/sbin/ejabberdctl
chown ejabberd:ejabberd /usr/local/etc/ejabberd/ejabberdctl.cfg
chown -R ejabberd:ejabberd /usr/local/etc/ejabberd/
chown -R ejabberd:ejabberd /usr/local/var/log/ejabberd
chown -R ejabberd:ejabberd /usr/local/lib/ejabberd-21.07 # change to correct version number based on tag
chown -R ejabberd:ejabberd /usr/local/var/lib/ejabberd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment