我是用這個Compile Asterisk 1.8 的
我是用這個Compile Asterisk 1.8 的,希望大家有用。
根據各位不同的需要,可能不需要yum install 太多以下東西:- yum -y install gcc gcc-c++ libxml2-devel ncurses-devel
- yum -y install openssl-devel mysql-devel sqlite-devel unixODBC-devel libtool-ltdl-devel
- yum -y install freetds-devel libvorbis-devel alsa-lib-devel bluez-libs-devel curl-devel libtiff-devel libssl-dev
- yum -y install libusb-devel gmime-devel net-snmp-devel flex bison lua-devel subversion
- yum -y install make gnutls-devel gnutls-utils kernel-devel newt-devel mlocate lynx tar wget nmap
- yum -y install bzip2 mod_ssl crontabs vixie-cron libxml2 texinfo neon neon-devel
- # for Gtalk support
- cd /usr/src
- wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
- tar zxvf iksemel-1.4.tar.gz
- cd iksemel-1.4
- ./configure
- make && make check && make install
- ldconfig -p | grep semel
- echo "/usr/local/lib" >> /etc/ld.so.conf.d/iksemel.conf
- ldconfig
- ldconfig -p | grep semel
- cd ..
- # install dahdi
- wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
- tar zxvf dahdi-linux-complete-current.tar.gz
- cd dahdi-linux-complete-2.4.0+2.4.0
- make && make install && make config
- chkconfig dahdi on
- service dahdi start
- cd ..
- #If you are using E1 cards you need to install LIBPRI.
- wget http://downloads.asterisk.org/pub/telephony/libss7/libss7-1.0.2.tar.gz
- tar zxvf libss7-1.0.2.tar.gz
- cd libss7-1.0.2
- make && make install
- cd ..
- wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12-beta3.tar.gz
- tar zxvf libpri-1.4.12-beta3.tar.gz
- cd libpri-1.4.12-beta3
- make && make install
- cd ..
- rpm -ivh http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/epel/5/i386/libical-0.43-4.el5.i386.rpm
- rpm -ivh http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/epel/5/i386/libical-devel-0.43-4.el5.i386.rpm
- cd ..
- #optional; If you also want to build the PDF manual (but you don't need to, you will need an optional tool called rubber that compiles Latex into a PDF
- wget http://launchpad.net/rubber/trunk/1.1/+download/rubber-1.1.tar.gz
- tar zxvf rubber-1.1.tar.gz
- cd rubber-1.1
- ./configure && make && make install
- cd ..
- #install asterisk
- wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.1.1.tar.gz
- tar zxvf asterisk-1.8.1.1.tar.gz
- cd asterisk-1.8.1.1
- ./configure
- #this is only for format MP3 - SVN required
- contrib/scripts/get_mp3_source.sh
- contrib/scripts/get_ilbc_source.sh
- make menuselect
- make
- make install
- make samples
- make progdocs
- make config
- make install-logrotate
- chkconfig asterisk on
- service dahdi start
- service asterisk start
複製代碼 |