1、版本
centos--6.5
freeswitch--1.4.20
2、下载freeswitch安装包到/usr/local/my_download目录下
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.4.20.tar.gz
3、解压tar包
tar -xvzf reeswitch-1.4.20.tar.gz
4、执行./configure,做相关编译前的环境检查,错误处理如下:
4.1
checking for libpcre >= 7.8... Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable No package 'libpcre' found
configure: error: Library requirements (libpcre >= 7.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
少包,执行:
yum install pcre
yum install pcre-devel解决
4.2
checking for speex >= 1.2rc1 speexdsp >= 1.2rc1... Package speex was not found in the pkg-config search path. Perhaps you should add the directory containing `speex.pc' to the PKG_CONFIG_PATH environment variable No package 'speex' found Package speexdsp was not found in the pkg-config search path. Perhaps you should add the directory containing `speexdsp.pc' to the PKG_CONFIG_PATH environment variable No package 'speexdsp' found
configure: error: Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
执行:
yum install speex
yum install speex-devel
4.3
checking for libldns >= 1.6.6... checking for ldns_str2rdf_a in -lldns... no
configure: error: You need to either install libldns-dev or disable mod_enum in modules.conf
vi modules.conf
#applications/mod_enum
4.4
configure: error: You need to either install libedit-dev (>= 2.11) or configure with --disable-core-libedit-support
yum install libedit-devel
5、make
6、make install
7、安装声音文件
make sounds-install
make moh-install