asterisk14 编译笔记

来源:互联网 发布:众泰e200好还是知豆 编辑:程序博客网 时间:2024/06/01 21:16

环境:ubuntu12.04

./configure


一、-bash: wget: command not found

 sudo apt-get install wget

二、configure: error: no acceptable C compiler found in $PATH

sudo apt-get install gcc

三、make: gcc: command not found

sudo apt-get install gcc
四、configure: error: C++ preprocessor “/lib/cpp” fails sanity check
 sudo apt-get install g++

 CentOS 6: yum install glibc-headers gcc-c++
五、configure: error: *** Please install GNU make. It is required to build Asterisk!

 sudo apt-get install make

六、遇到 termcap support not found问题,

运行apt-get install ncurses-dev

 CentOS 6: yum -y install ncurses-devel

七、 configure 过程中,提示 uuid support not found (this typically means the libjansson development package is missing):​
解决办法:
apt-get install uuid-dev
八、error: *** JSON support not found (this typically means the libjansson development package is missing)
cd /usr/src/ 
&& wget http://www.digip.org/jansson/releases/jansson-2.5.tar.gz
tar -zxf jansson-2.5.tar.gz
cd jansson*
./configure --prefix=/usr/ && make clean && make && make install && ldconfig
九、The Asterisk menuselect tool requires 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​

编译、安装
./configure && make && make install
十、. 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

十一、编译asterisk时,使用./configure

错误:{standard input}:1036: Error: no such instruction: `vfmadd312ps 160(%rsp),%ymm0,%ymm1'

./configure CFLAGS=-mtune=generic

----------更新时间2017.9.5----------------

十二、在CentOS 6中编译asterisk遇到 termcap support not found问题

yum  install ncurses-devel

十三、CentOS:uuid support not found (this typically means the libjansson development package is missing):​
解决办法:
yum install libuuid-devel

----------更新时间2017.9.20----------------

十四、configure: error: C++ preprocessor “/lib/cpp” fails sanity check
 yum install glibc-headers gcc-c++

十五、安装lrzsz包

yum install lrzsz

原创粉丝点击