freeSwitch1.7+vBilling centos6.6 mini install

首先卖个关子:本人提供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  或者 去掉#注释即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值