Installing The Build Prerequisites

Begin the Asterisk install by making sure that the current versions of all of the installed packages are up to date. Even if you just installed the OS from the install disk, its a good idea to check this, since the install disk may be a bit out of date. If you don't do this, problems can arise. For example, if the latest version of the kernel is not installed and the kernel-devel package is installed you may get source code that doesn't match your current kernel. Asterisk will not build without the kernel and source code matching.

To check for updates for all of the installed packages, type:

     su
     yum -y update

When you've done, reboot the machine, just to make sure in case the update installs a new kernel.

Now, since we built a stripped down version of CentOS, we need to get all of the dependencies that are needed to build Asterisk. We could have chosen them when we installed the OS but this way is easier. Simply cut and paste the following command and you're in business:

     su
     yum -y install make gcc gcc-c++ kernel-devel bison openssl-devel \
       libtermcap-devel ncurses-devel doxygen curl-devel newt-devel \
       mlocate lynx tar wget nmap bzip2 mod_ssl crontabs vixie-cron \
       speex speex-devel unixODBC unixODBC-devel libtool-ltdl \
       libtool-ltdl-devel mysql-connector-odbc mysql mysql-devel \
       mysql-server php-mysql php-mbstring php-mcrypt flex screen \
       libxml2 libxml2-devel libtiff libtiff-devel