|
今天在阿里云上申請了個免費的服務器,操作系統(tǒng)選擇了Centos6.5。嘗試安裝 Asterisk13,幾經(jīng)周折,終于成功。記錄如下。 1 安裝前的準備?經(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? 2 關(guān)閉/SELINUX?sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config? 3 configure 過程中遇到的問題具體安裝過程,網(wǎng)上說明很多,僅僅記錄中間遇到的問題及解決辦法? 1) configure 過程中,提示 uuid support not found (this typically means the libjansson development package is missing):? 解決辦法: yum -y install uuid-devel yum -y install libuuid libuuid-devel 2)configure 過程中,提示: JSON support not found 解決: 下載: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'development package, configure: *** The Asterisk menuselect tool requires the 'libxml2' development package. configure: *** Please install the 'libxml2' development package. 下載libxml2-2.6.32.tar.gz:http://download./down.php?id=28493&ResourceID=6095&site=1 解壓:tar -zxf libxml2-2.6.32.tar.gz? 編譯、安裝 4). configure: error: *** Asterisk now uses SQLite3 for the internal Asterisk database. 解決辦法: 下載sqlite-3.3.5.tar.gz:http://download./down.php?id=19777&ResourceID=9862&site=1 解壓:tar -zxf sqlite-3.3.5.tar.gz? 編譯、安裝? 至此,可以 configure通過,然后 make,make install, make samples 即可完成安裝。 4 安裝后,Asterisk不能啟動的問題1)OpenSSL問題? 安裝后,用 asterisk命令啟動,結(jié)果報錯: asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory 以及,asterisk: error while loading shared libraries: libjansson.so.4: cannot open shared object file: No such file or directory? 原來,是自己安裝的動態(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)關(guān)于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。升級過程參見: 3) 提示缺少動態(tài)連接庫的解決辦法啟動asterisk時,提示缺少動態(tài)連接庫 *.so--cannot open shared object file: No such file or directory 之類的解決辦法參見:? http://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html 4)相關(guān)文件? 安裝過程中,需要的幾個文件,已經(jīng)分享,可從這里下載: http://pan.baidu.com/s/1gdtuBuF?
|
|
|
來自: 浪子小新 > 《asterisk》