当前位置: 首页 > 工具软件 > vBilling > 使用案例 >

freeSwitch1.7+vBilling centos6.6 mini install

曾高杰
2023-12-01

首先卖个关子:本人提供SS服务(只为方便程序猿) https://www.ssrun.net


以下大部分内容贴自:http://www.8000hz.com/archives/freeswitch-git-compile-1-7.html

但在执行过程中遇到一些错误,进行了补全。


下载源代码

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

准备依赖
cd freeswitch
sh support-d/prereq.sh

yum -y install curl-devel pcre-devel speex-devel ldns-devel lua-devel libsndfile-devel 

cd freeswitch/libs

编译libyuv
git clone https://freeswitch.org/stash/scm/sd/libyuv.git
cd libyuv
make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"
make install
cp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/

编译VPX
cd ..
git clone https://freeswitch.org/stash/scm/sd/libvpx.git
cd libvpx
./configure --enable-pic --disable-static --enable-shared
这里可能会提示 Neither yasm nor nasm have been found
解决方法:yasm是一个汇编编译器,声称是nasm的升级版,各版本地址:http://www.tortall.net/projects/yasm/releases/

我选择的是最新的1.3.0

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz

tar -vxf yasm-1.3.0.tar.gz

cd yasm-1.3.0

./configure

make&&make install

搞定!继续下面步骤

make
make install
cp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/


编译OPUS
cd ..
git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus
./autogen.sh
./configure
make
make install
cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

编译libpng
git clone https://freeswitch.org/stash/scm/sd/libpng.git
cd libpng
 ./configure
make
make install
cp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/
pkg-config --list-all | grep png


编译&安装
cd ..
sh bootstrap.sh
./configure --prefix=/usr/local/freeswitch
make
make install
如果出现问题:configure: error: You need to either install libldns-dev or disable mod_enum in modules.conf
解决办法:
修改modules.conf,注释叼 mod_enum 模块!重新从 ./configure 开始



启动 /usr/local/freeswitch/bin/freeswitch-c-nonat-rp

freeswitch安装完!

如果启动freeswitch 失败:libyuv错误 cannot open shared object file: No such file or directory

解决办法:

vi /etc/ld.so.conf

添加以下几行: 
/usr/local/lib
/usr/lib
/lib

sudo ldconfig

搞定!

——————————————————————————————————————vBilling Install————————————————————————————————————————————————

Vbilling安装:

# wget --no-check-certificate http://goo.gl/ap7KV -O install.sh
 # chmod +x install.sh
 # ./install.sh

到此已经全都安装好了!



如果启动httpd服务失败 

httpd: Could not reliably determine the server's fully qualified domain name 

解决办法: vi /etc/httpd/conf/httpd.conf    加入一句   ServerName  localhost:80  或者 去掉#注释即可

 类似资料:

相关阅读

相关文章

相关问答