安装asterisk中遇到的错误

asterisk 安装目录里执行

./configure

出现以下警告:

I want to compile the asterisk with SRTP library but in configuring the asterisk code, I get this error:

checking for the ability of -lsrtp to be linked in a shared object... no
configure: WARNING: ***
configure: WARNING: *** libsrtp could not be linked as a shared object.
configure: WARNING: *** Try compiling libsrtp manually. Configure libsrtp
configure: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr
configure: WARNING: *** replacing /usr with the prefix of your choice.
configure: WARNING: *** After re-installing libsrtp
configure: WARNING: *** configure script.
configure: WARNING: ***
configure: WARNING: *** If you do not need SRTP support re-run configure
configure: WARNING: *** with the --without-srtp option.
解决方法:

in SRTP folder:

make uninstall
make clean
./configure CFLAGS=-fPIC --prefix=/usr/local/lib
make
make runtest
make install

in Asterisk folder:

 cd ../../asterisk/asterisk-11.3.0/
./configure --with-srtp=/usr/local/lib
当我在SRTP目录下运行:
make runtest

出现:
[runtest] Error 254
解决方法:
在test目录下修改rtpw_test.sh 
中line 7 : RTPW=rtpw
改为: RTPW=./rtpw
line 21:  killall rtpw 2&>/dev/null
改为:
killall rtpw 2>/dev/null
参考:http://blog.sina.com.cn/s/blog_7acb2119010199cd.html
在执行:
make progdocs
出现:
/bin/bash: line 1: doxygen: command not found
make: *** [progdocs] Error 127
解决方法:
apt-get install doxygen

在usr/lib/asterisk/modules/无chan_sip.so
解决方案:
apt-get install libcurl4-openssl-dev
(chan_sip.so依赖 res_crypto.so,而res_crypto.so 依赖openssl)
重新./configure make menuselect  make install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值