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  或者 去掉#註釋即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章