CentOS 7 安装FreeSwitch 1.8.5

安装环境:

CentOS7

FreeSwitch1.8.5

cmake1.14.0

由于网络的问题,而且访问外网的速度一般都是比较慢的,所以我是先下载freeswitch1.8.5的安装包和cmake1.14.0的安装包,然后把这两个安装包放到/usr/local/src目录下

本安装过程主要是参考 https://blog.csdn.net/zhuimeng11_/article/details/92819658

安装过程:

1、下载需要安装的工具包

我是先使用迅雷把freeswitch1.8.5和cmake1.14.0

2、安装依赖包

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

3、 安装cmake

先把cmake放到  /usr/local/src目录下,如果cmake安装包不在/usr/local/src目下,可以使用mv指令把文件移到/usr/local/src

或者使用wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz进行下载 

yum remove cmake #卸载yum安装的版本,若无安装则忽略
cd /usr/local/src
tar vzxf cmake-3.14.0.tar.gz
cd cmake-3.14.0

./bootstrap
./configure
make
make install

4、 安装libks

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

5、安装 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

6、安装freeswitch如果freeswitch安装包不在/usr/local/src目下,可以使用mv指令把文件移到/usr/local/src

或者使用wget http://files.freeswitch.org/releases/freeswitch/freeswitch-1.8.5.tar.gz进行下载

 cd /usr/local/src/
tar vzxf freeswitch-1.8.5.tar.gz
cd freeswitch-1.8.5
./configure 
make
make install

使用 ./configure最后的生成结果

CentOS 7 安装FreeSwitch 1.8.5_第1张图片

使用make最后的结果

 CentOS 7 安装FreeSwitch 1.8.5_第2张图片

如果能看到上图的运行状态,说明安装已经成功了,当然不要忘了还有一个make install指令

 6、使用ln生成软连接

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

 7、测试安装结果使用freeswitch

CentOS 7 安装FreeSwitch 1.8.5_第3张图片

8、打开了freeswitch 可以使用shutdown指令关闭

 

 

你可能感兴趣的:(freeswitch,CentOS,7,安装FreeSwitch,1.8.5,FreeSwitch安装,FreeSwitch安装教程,linux,freeswitch安装)