Skip to main content

Fedora 29

About

This article contains FreeSWITCH™ installation instructions on hosts with CentOS7 or RHEL7 operating system.

Click to expand Table of Contents

Compiling from source code

Building from source

Release

FreeSWITCH™ can be built from source if you desire but it is not recommended.

dnf install -y git alsa-lib-devel autoconf automake bison bzip2 curl-devel e2fsprogs-devel flite-devel \
gcc-c++ gdbm-devel gnutls-devel ldns-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel \
libogg-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel \
lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel nspr-devel openssl-devel opus-devel pcre-devel perl \
perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python2-devel python-devel soundtouch-devel \
speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel speexdsp-devel speex-devel erlang

cd /usr/local/src
git clone -b v1.8 https://github.com/signalwire/freeswitch.git freeswitch
cd /usr/local/src/freeswitch
export CFLAGS="-Wno-error=format-truncation -Wno-error=stringop-truncation"
./bootstrap.sh -j
./configure -C --enable-portable-binary \
--prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--with-gnu-ld --with-python --with-erlang --with-openssl \
--enable-core-odbc-support \
--enable-core-pgsql-support \
--enable-static-v8 --disable-parallel-build-v8
make
make -j install
make -j cd-sounds-install
make -j cd-moh-install

Master for Testing

WARNING not suitable for production

FreeSWITCH™ can be built from source if you desire but it is not recommended.

dnf install -y git alsa-lib-devel autoconf automake bison bzip2 curl-devel e2fsprogs-devel flite-devel \
gcc-c++ gdbm-devel gnutls-devel ldns-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel \
libogg-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel \
lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel nspr-devel openssl-devel opus-devel pcre-devel perl \
perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python2-devel python-devel soundtouch-devel \
speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel speexdsp-devel speex-devel erlang

cd /usr/local/src
git clone https://github.com/signalwire/freeswitch.git freeswitch
cd /usr/local/src/freeswitch
export CFLAGS="-Wno-error=format-truncation -Wno-error=stringop-truncation"
./bootstrap.sh -j
./configure -C --enable-portable-binary \
--prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--with-gnu-ld --with-python --with-erlang --with-openssl \
--enable-core-odbc-support \
--enable-core-pgsql-support \
--enable-static-v8 --disable-parallel-build-v8
make -j
make -j install
make -j cd-sounds-install
make -j cd-moh-install