1. Switch to the root account sudosusudo-i2. Install the package apt-get-yinstalllinux-headers-$ (uname-r) build-essentialautomakeautoconfbisonflexlibtoollibncurses5-devlibssl-devsubversionsvn-buildpackageapt
1. Switch to the root account
Sudo su
Sudo-I
2. install the software package
Apt-get-y install linux-headers-$ (uname-r) build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev subversion svn-buildpackage
Apt-get-y install cvs libgsm1 libgsm1-dev
Apt-get-y install sysvconfig
Apt-get-y install libxml2 libxml2-dev
3. Go to www.asterisk.org/downloads/ to download asterisk. Put it in/usr/src.
I downloaded asterisk-1.6.2.8.
4. Unzip tar-xzf asterisk-1.6.2.8.tar.gz
Cd asterisk-1.6.2.8
./Configure (if this step is incorrect, install the corresponding software package as prompted)
Make
Make install
5. Start the service
Service asterisk start
========================================================== ========================================================== =
L first install some things required for basic Compilation
Apt-get install build-essential
Apt-get install linux-headers-2.6.28-11-server
L install dahdi to support the Conference and Page functions of Asterisk.
L library environment required for installing Asterisk
Apt-get install bison
Apt-get install libnewt-dev
Apt-get install libncurses5-dev
L install Asterisk
L install MYSQL
Apt-get install mysql-server
Apt-get install libmysqlclient15-dev
L install Asterisk-addons
L create related table structure information and Configuration