美文网首页
CentOS7下通过源码安装Freeswitch

CentOS7下通过源码安装Freeswitch

作者: 安安爸Chris | 来源:发表于2019-05-07 14:34 被阅读0次

    本文参考官方安装指导https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7

    rpm安装包

    这也是最简单有效的方法

    yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
    yum install -y freeswitch-config-vanilla freeswitch-lang-* freeswitch-sounds-*
    systemctl enable freeswitch
    

    源码安装

    yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
    yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libdb4-devel e2fsprogs-devel erlang flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-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 openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel libshout-devel libmpg123-devel lame-devel
     
    cd /usr/local/src
    git clone -b v1.8 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch
    cd /usr/local/src/freeswitch
    ./bootstrap.sh -j
    ./configure --enable-portable-binary \
                --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
                --with-modinstdir=/usr/lib64/freeswitch/mod \
                --with-htdocsdir=/usr/share/freeswitch/htdocs \
                --with-fontsdir=/usr/share/freeswitch/fonts \
                --with-soundsdir=/usr/share/freeswitch/sounds \
                --with-grammardir=/usr/share/freeswitch/grammar \
                --with-scriptdir=/usr/share/freeswitch/scripts \
                --with-gnu-ld --with-python --with-openssl \
                --enable-core-odbc-support --enable-zrtp \
                --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
    

    configure参数根据需要可配

    可选Features 可选包

    相关文章

      网友评论

          本文标题:CentOS7下通过源码安装Freeswitch

          本文链接:https://www.haomeiwen.com/subject/ecyeoqtx.html