多语言展示
当前在线:1961今日阅读:99今日分享:20

Asterisk 安装时报错处理方法总结

安装Asterisk时会遇到一些报错提示,以下是几个报错的处理方法
工具/原料

Asterisk

方法/步骤
1

1、编译时出现下面提示configure: *** XML documentation will not be available because the 'libxml2' development package is missing.configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter optionconfigure: *** or install the 'libxml2' development package解决办法:yum install libxml2-devel

2

2、configure: error: no acceptable C compiler found in $PATH解决办法:apt-get install gcc

3

3、configure: error: C++ preprocessor “/lib/cpp” fails sanity check解决办法:apt-get install g++或者apt-get install build-essential

4

4、configure: *** XML documentation will not be available because the ‘libxml2′ development package is missing.configure: *** Please run the ‘configure’ script with the ‘–disable-xmldoc’ parameter optionconfigure: *** or install the ‘libxml2′ development package.解决办法:安装 libxml2-dev也没用,直接./configure ‘–disable-xmldoc’

5

5、configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)解决办法:apt-get install ncurses-devel

6

6、[FATAL] PEAR must be install (reauires DB.php). Include path: .:/usr/share/pear:/usr/local/src/PEAR解决办法:pear install db

7

7、make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-2.6.0/drivers/dahdi/firmware'You do not appear to have the sources for the 2.6.18-274.18.1.el5PAE kernel installed.make: *** [modules] Error 1解决办法:1.rpm -q kernel-PAE-devel2.yum install kernel-PAE-devel

推荐信息