今天在阿里云上申請了個免費的服務器,操作系統(tǒng)選擇了Centos6.5。嘗試安裝Asterisk13,幾經(jīng)周折,終于成功。記錄如下。
經(jīng)確認(rpm -q bison-devel),
以下組件沒有安裝,用yum 命令逐一安裝
yum install bison-devel
yum install ncurses-devel
yum install zlib-devel
yum install openssl-devel(???)
yum install gnutls-devel
yum install gcc-c++
yum install mysql-devel?
sed -i s/SELINUX=enforcing/SELINUX=disabled/g/etc/selinux/config?
具體安裝過程,網(wǎng)上說明很多,僅僅記錄中間遇到的問題及解決辦法?
1) configure 過程中,提示 uuid support not found(this typically means the libjansson development package ismissing):?
解決辦法:
yum -y install uuid-devel
yum -y install libuuid libuuid-devel
2)configure 過程中,提示: JSON support notfound
解決:
下載:jansson-2.5.tar.gz
tar -zxf jansson-2.5.tar.gz
cd jansson*
./configure --prefix=/usr/ &&make clean && make&& make install&& ldconfig
3 configure 過程中提示:'libxml2'developmentpackage,
configure: *** The Asterisk menuselect tool requires the'libxml2' development package.
configure: *** Please install the 'libxml2' developmentpackage.
下載libxml2-2.6.32.tar.gz:http://download.chinaunix.net/down.php?id=28493&ResourceID=6095&site=1
解壓:tar -zxf libxml2-2.6.32.tar.gz?
編譯、安裝
4). configure: error: *** Asterisk now uses SQLite3 forthe internal Asterisk database.
解決辦法:
下載sqlite-3.3.5.tar.gz:http://download.chinaunix.net/down.php?id=19777&ResourceID=9862&site=1
解壓:tar -zxf sqlite-3.3.5.tar.gz?
編譯、安裝?
至此,可以 configure通過,然后 make,make install, make samples 即可完成安裝。
1)OpenSSL問題?
安裝后,用asterisk命令啟動,結果報錯:
asterisk: error while loading shared libraries:libasteriskssl.so.1: cannot open shared object file: No such fileor directory
以及,asterisk: error while loading shared libraries:libjansson.so.4: cannot open shared object file: No such file ordirectory?
原來,是自己安裝的動態(tài)鏈接庫文件的路徑不對,默認安裝的/usr/local/lib目錄下了,了,(可在系統(tǒng)根目下,用 find-name libasteriskssl* 命令搜索文件所在位置)。
用ln命令將需要的so文件鏈接到/usr/lib或者/lib這兩個默認的目錄下邊
ln -s /usr/local/lib/*.so /usr/lib
ln -s /usr/local/lib/*.so.4 /usr/lib?
ln -s /usr/local/lib/*.so.1 /usr/lib?
然后重新載入:ldconfig 即可!
2)關于OpenSSL漏洞?的問題
centos 系統(tǒng)默認的OpenSSL 版本是1.0.1e,不知道是否已經(jīng)修復了漏洞。?
OpenSSL 暴露的Heartbleed 心臟流血漏洞極大地影響了網(wǎng)絡安全。眾所周知,
Asterisk使用了OpenSSL來對信令進行安全加密,支持的模塊包括對SIP協(xié)議,XMPP,AMI和ARI。
如果用戶在Asterisk中使用了TLS,并且OpenSSL的版本如果是有漏洞的版本,請用戶及時更新OpenSSL版本。有漏洞的版本從OpenSSL1.0.1到1.0。如果用戶使用了以上的版本。?
為保險起見,安裝之后,將其升級到最新版本OpenSSL 1.0.1p。升級過程參見:
啟動asterisk時,提示缺少動態(tài)連接庫 *.so--cannot open shared object file: Nosuch file or directory 之類的解決辦法參見:?
http://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html
4)相關文件?
安裝過程中,需要的幾個文件,已經(jīng)分享,可從這里下載:
http://pan.baidu.com/s/1gdtuBuF?