System information
dependencies; only the most commonly used modules will be built. If additional
dependencies are required for other modules used later in the book, instructions will
be provided as necessary.
Please be aware that the dependency information on CentOS 64-bit does
not take into account that 32-bit libraries should not be installed. If such
libraries are installed, you will end up with additional packages that use
disk space and can cause conflicts if the system attempts to compile
against a 32-bit library instead of its 64-bit counterpart. In order to re-
solve this problem, add .x86_64 to the end of each package name when
installing it. So, for example, instead of executing yum install ncurses-
devel, you will execute yum install ncurses-devel.x86_64. This is not
necessary on a 32-bit platform.
Table 3-1. Software dependencies for Asterisk on Ubuntu Server and CentOS Server
Ubuntu CentOS
sudo apt-get install build-essential \
subversion libncurses5-dev libssl-dev \
libxml2-dev vim-nox
sudo yum install gcc gcc-c++ make wget \
subversion libxml2-devel ncurses-devel \
openssl-devel vim-enhanced
These packages will get you most of what you’ll need to get started with installing
Asterisk, DAHDI, and LibPRI. Note that you will also require the software dependen-
cies for each package that we indicate needs to be installed. These will be resolved
automatically for you when you use either yum or apt-get.
We have also included the OpenSSL development libraries, which are not strictly nec-
essary to compile Asterisk, but are good to have: they enable key support and other
encryption functionality.
We have installed vim as our editor, but you can choose anything you want, such as
nano, joe, or emacs.
Asterisk contains a script that will install the dependencies for all features in Asterisk.
At this time it is complete for Ubuntu but does not list all required packages for CentOS.
Once you have downloaded Asterisk using the instructions in “Downloading What
You Need” on page 46, use the following commands if you would like to run it:
$ cd ~/src/asterisk-complete/asterisk/1.8
$ sudo ./contrib/scripts/install_prereq install
$ sudo ./contrib/scripts/install_prereq install-unpackaged
Software Dependencies | 45