CentOS7 源码安装 FreeSWITCH 记录
1、安装相关的依赖:
yum install -y gcc yum install -y gcc-c++ yum install -y zlib-devel yum install -y libjpeg-turbo-devel yum install -y sqlite-devel yum install -y libcurl-devel yum install -y pcre-devel yum install -y speex-devel yum install -y libedit-devel yum install -y openssl-devel yum install -y libsndfile-devel yum install -y lua-devel
2、下载源程序
3、开始编译
./bootstrap.sh -j ./configure
如果顺利会出现如下信息

make

make install

4、会出现的问题:
- 错误提示:spandsp >= 3.0… configure: error: no usable spandsp; please install spandsp3 devel package or equivalent
安装spandsp
cd /usr/local/src/freeswitch-1.10.5.-release
git clone https: //github.com/freeswitch/spandsp.git
cd spandsp
./configure
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
ldconfig
安装sofia-sip
cd /usr/local/src/freeswitch-1.10.5.-release git clone https: //github.com/freeswitch/sofia-sip.git cd sofia-sip ./configure make make install ldconfig
- 错误提示: You must install libopus-dev to build mod_opus
yum -y install opus-devel #可能需要清理: make clean && ./configure && make
如果还是报这个错误, 就注释这两行,在Makefile:
vim freeswitch/src/mod/codecs/mod_opus/Makefile # Comment line & #install: error #all: error
运行时记得把防火墙关掉
浙公网安备 33010602011771号