Installing Asterisk from standard packages on Ubuntu LTS (6.06)

Filed under
HowTos

Ubuntu includes packages for Asterisk and Zaptel, but they may not be up to date, or the newer packages may only be available in newer Ubuntu releases.

With this procedure you can install the latest version of Asterisk by compiling from source.

1. Install build packages

apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev

2. Install kernel headers matching the current kernel version.

root@santo:~ # uname -a
Linux santo 2.6.8.1-5-686-smp #1 SMP Mon Mar 14 21:59:14 UTC 2005 i686 GNU/Linux
root@santo:~ # apt-cache search inux-headers 2.6.8.1-5-686-smp
linux-headers-2.6.8.1-5-686-smp - Linux kernel headers 2.6.8.1 on PPro/Celeron/PII/PIII/PIV SMP
root@santo:~ # apt-get install linux-headers-2.6.8.1-5-686-smp

3. Create a link to the current headers so that the Asterisk makefiles can find them.

Full Story.