freeswitch 在redhat 7.0/centos 7.0上的编译安装

来源:互联网 发布:三国志9高难度优化伴侣 编辑:程序博客网 时间:2024/05/16 08:28

 参考官方文档:

https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7

https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7


1) Make sure yum update is run and CentOS is up-to-date2) {optional} inside Terminal window select Edit Profile Preferences and select "Use custom default terminal size" and make it 160 x 60.  Close terminal and re-open for the change to take affect.3) yum -y install git4) yum -y install epel-release5) rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm6) yum -y install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel7) yum -y install libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel8) cd /usr/local/src9) git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git10) cd /usr/local/src/freeswitch11) ./bootstrap.sh12)          ./configure13)          make14) make install15) make cd-sounds-install16) make cd-moh-install17) cd /usr/local/freeswitch/conf18) vi vars.xml                                Change:  <X-PRE-PROCESS cmd="set" data="default_password=1234"/> {!!set it to something different!!}                                Save and close (<Esc> :wq!)19) cd /usr/local/freeswitch/conf/sip_profiles20) mv internal-ipv6.xml internal-ipv6.xml.removed   {disables ipv6 support}21) mv external-ipv6.xml external-ipv6.xml.removed  {disables ipv6 support}22) cd /usr/local/freeswitch/bin23) ./freeswitch -nonat -nonatmap24) ... to exit from FreeSWITCH console


报错:

Neither yasm nor nasm have been found. See the prerequisites section in the README for more info.


这个只需要安装yasm

有两种方法

1)

yum install yasm

2)

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar zxvf yasm-1.2.0.tar.gz
cd yasm-1.2.0/
./configure
make
make install


还有个执行 ./configure后面后很多参数。依赖比较多。建议不需要的不要enable