freeSwitch1.7+vBilling centos6.6 mini install

来源:互联网 发布:mysql覆盖索引 编辑:程序博客网 时间:2024/05/16 11:32

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

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


下载源代码

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

准备依赖
cd freeswitchsh support-d/prereq.shyum -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.gitcd libyuvmake -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"make installcp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/

编译VPX
cd ..git clone https://freeswitch.org/stash/scm/sd/libvpx.gitcd 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

搞定!继续下面步骤

makemake installcp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/


编译OPUS
cd ..git clone https://freeswitch.org/stash/scm/sd/opus.gitcd opus./autogen.sh./configuremakemake installcp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

编译libpng
git clone https://freeswitch.org/stash/scm/sd/libpng.gitcd libpng ./configuremakemake installcp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/pkg-config --list-all | grep png


编译&安装
cd ..sh bootstrap.sh./configure --prefix=/usr/local/freeswitchmakemake 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
原创粉丝点击