System information

$ cd ~/src/asterisk-complete/
$ mkdir thirdparty/
$ mkdir thirdparty/1.8/
Downloading third-party modules into this directory allows you to easily reinstall those
modules when you upgrade. Just follow the installation instructions for your module,
many of which will be as simple as rerunning make install from the modules source
directory or copying the precompiled binary to the /usr/lib/asterisk/modules/ directory.
Be sure to change the file permissions to match those of the user running
Asterisk!
Common Issues
In this section we’re going to cover some common issues you may run into while
compiling Asterisk, DAHDI, or LibPRI. Most of the issues you’ll run into have to do
with missing dependencies. If that is the case, please review “Software Dependen-
cies” on page 44 to make sure you’ve installed everything you need.
Any time you install additional packages, you will need to run
the ./configure script in your Asterisk source in order for the new package
to be detected.
-bash: wget: command not found
This message means you have not installed the wget application, which is required for
you to download packages from the Asterisk downloads site, for Asterisk to download
sound files, or for DAHDI to download firmware for hardware.
Ubuntu CentOS
$ sudo apt-get install wget $ sudo yum -y install wget
configure: error: no acceptable C compiler found in $PATH
This means that the Asterisk configure script is unable to find your C compiler, which
typically means you have not yet installed one. Be sure to install the gcc package for
your system.
Ubuntu CentOS
$ sudo apt-get install gcc $ sudo yum install gcc
66 | Chapter 3:Installing Asterisk