5.1. Installing Asterisk from Source Code
Problem
You're not sure what the best way to install Asterisk is—should you install from your distribution's packages, or do a source install?
Solution
Currently, there are packages only for Debian, and they are behind the current stable release. In this chapter, we're going to install Asterisk on CentOS 5.0. CentOS is a Red Hat Enterprise Linux clone. It's very stable, and Asterisk runs well on it.
See Recipe 5.2 for apt-getting your way to Asterisk on Debian.
Hardware requirements are the minimum suggested for a test system. Asterisk needs a lot of horsepower. Your Asterisk server must be a dedicated server—don't try to run other services on it.
Hardware requirements:
A PC with at least a 500 MHz CPU
256 MB RAM
CD drive
10 GB hard drive
Sound card and speakers, or a USB headset
An Internet connection for downloading additional sound files during the installation (optional)
Software requirements:
The standard Linux build environment, which includes gcc, automake, glibc-devel, glibc-headers, glibc-kernheaders, binutils, doxygen, and kernel-devel. Grab all of them at once by installing the Development Tools package group:
# yum groupinstall "Development Tools"Then, install these packages to satisfy Asterisk dependencies:
# yum install ncurses ncurses-devel openssl openssl-devel zlib zlib-devel newt newt-develNow, download the current releases of the three main source tarballs from Asterisk.org (http://www.asterisk.org/downloads) into the /usr/src directory. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access