踩坑n次,终于安装成功 ,CentOS 7 安装FreeSwitch 1.8.5

CentOS 7  64位安装FreeSwitch 1.8.5 ,记录一下  ( 安装是CentOS 7.4 64位,但CentOS 7.7 64版本有一些库会异常)

freeswitch 各个版本路径:https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.8.x+Release+notes

 

安装各种依赖包

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

安装cmake,若通过yum已经安装cmake,应该 卸载系统的低版本cmake

yum remove cmake #卸载yum安装的版本,若无安装则忽略
cd /usr/local/src
wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz
tar vzxf cmake-3.14.0.tar.gz
cd cmake-3.14.0
./configure
make
make install

安装libks

cd /usr/local/src
yum install libatomic
git clone https://github.com/signalwire/libks.git
cd libks
cmake .
make
make install

安装signalwire-c

cd /usr/local/src
git clone https://github.com/signalwire/signalwire-c.git
cd signalwire-c/
cmake .
make
make install

ln -sf /usr/local/lib64/pkgconfig/signalwire_client.pc /usr/lib64/pkgconfig/signalwire_client.pc

若是没有找到signalwire_client.pc,可以全局搜索,搜索到之后,替换对应的路径    find / -name signalwire_client.pc

FreeSwitch编译源码安装:

cd /usr/local/src/
wget http://files.freeswitch.org/releases/freeswitch/freeswitch-1.8.5.tar.gz
tar vzxf freeswitch-1.8.5.tar.gz
cd freeswitch-1.8.5
./configure 
make
make install

安装完成 。

踩坑n次,终于安装成功 ,CentOS 7 安装FreeSwitch 1.8.5_第1张图片

至此,FreeSWITCH就已经安装完了。在UNIX类操作系统上,其默认的安装位置是/usr/local/freeswitch(下
文所述的路径全部相对于该路径)。两个常用的命令是bin/freeswitch和bin/fs_cli(我们下面会讲到它们的用
法),为了便于使用,建议将这两个命令做符号链接放到你的搜索路径中,如:
 

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

 

你可能感兴趣的:(工具,freeswitch)