安装asterisk 时遇到的报错情况,及解决办法。
Debian 9 安裝 asterisk
?
https://linuxize.com/post/how-to-install-asterisk-on-debian-9/
?
configure 過程中遇到的問題
?具體安裝過程,網上說明很多,僅僅記錄中間遇到的問題及解決辦法?
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.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 for the 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 即可完成安裝。
?
5)啟動asterisk時報錯顯示:
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?
是安裝的動態鏈接庫文件的路徑不對,默認安裝的/usr/local/lib目錄下了,了,(可在系統根目下,用 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 即可!
?
安裝libpri庫報錯
重新編譯asterisk
find / -name chan_dahdi.so 查找到這個文件的位置。進去后 執行ldd 命令 如圖顯示才算安裝成功。
/usr/lib/asterisk/modules
?如果沒有正常顯示,請確保libpri安裝成功,然后先卸載asterisk 再重新編譯安裝saterisk。
重新載入:ldconfig
修改最大文件數,修改RTP 范圍?
編譯asterisk報錯提示:
recipe for target ‘chan_sip.so’ failed
或者
recipe for target ‘chan_iax.so’ failed
解決方法:
in order to compile, it needs this flag in
./configure LDFLAGS="-z muldefs"
it would be worth to add it to the project
?
轉載于:https://www.cnblogs.com/Ray-Lei/p/9590292.html
總結
以上是生活随笔為你收集整理的安装asterisk 时遇到的报错情况,及解决办法。的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: html页面展示Json样式
- 下一篇: 堆(heap)和栈(stack)