1.下载asterisk,asterisk-1.8.7.1.tar.gz;
2.安装所依赖的包:yum -y install libxml2-devel ncurses-devel libtermcap kernel-devel kernel-smp-devel gcc-c++ openssl-devel newt-devel zlib-devel unixODBC-devel libtool make
2.将asterisk-1.8.7.1.tar.gz放在/usr/src下进行安装:tar -zxvf asterisk-1.8.7.1.tar.gz
[root@localhost src]# ls
asterisk-1.8.7.1 asterisk-1.8.7.1.tar.gz debug kernels
[root@localhost src]#
3.进入asterisk-1.8.7.1: ./configure
[root@localhost asterisk-1.8.7.1]# ./configure
4.完成后再使用: make
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ make install +
+-------------------------------------------+
5.make install