Asterisk 1.8 Install Script for CentOS 5 on Rackspace Cloud Server
Since Asterisk version 1.4.x is scheduled for end of life on 4/21/2012, I decided to start testing Asterisk version 1.8. I choose to start working with Asterisk 1.8 because it is a long-term support release which extends its life to 10/21/2015. I modified my install script to work with dahdi and version 1.8 so that it is a simple one step install for Asterisk. There are a few changes with version 1.8, such as the mysql cdr add-on no longer exists. Instead the use of odbc libraries connect to a MySQL server or other database server. I made the changes to my script to adjust for Asterisk 1.8 and tested it on a Rackspace cloud server.
If you are not using a Rackspace cloud server and are running the script on a standard CentOS install be sure to comment out the following line from the script:
export KSRC=/usr/src/kernels/2.6.18-274.12.1.el5xen-x86_64
Install the following packages before running the script.
yum -y install bind-utils curl-devel doxygen gcc gcc-c++ gtk+ gtk+-devel gnutls-devel httpd kernel-xen kernel-xen-devel kernel kernel-devel kernel-smp-devel kernel-smp libxml2-devel libtermcap-devel libtool-ltdl libtool-ltdl-devel make mysql mysql-server mysql-devel mysql-server-devel mysql-connector-odbc net-snmp-devel neon-devel newt-devel ncurses-devel ntp openssl-devel openssl perl-suidperl php-mysql system-config-securitylevel screen texinfo unixODBC unixODBC-devel wget
Now just download and run the script which will do all the heavy lifting of compiling Asterisk.
wget http://jonathanmanning.com/wp-content/uploads/2012/01/install_asterisk18.txt chmod +x install_asterisk18.txt ./install_asterisk18.txt
Awesome Article. Exactly what I was looking for. Thanks for your hard work!
Please mention what repo’s you were using for yum as the standard repo that Rackspace uses does not include, the following 3 modules.
No package kernel-smp-devel available.
No package kernel-smp available.
No package mysql-server-devel available.
Hi Bobby,
You can ignore the errors from the missing yum packages. I always include ones that may or may not be there just in case. The script will work even if those packages are missing. I was using the default repo that is on the cloud server.
Jon