How to Install Asterisk on Ubuntu 9.04 / 9.10 from Scratch

Published on
39,876 Points
12 Endorsements
Last Modified:
Community Pick
The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server.

# Setup the system

apt-get install subversion
apt-get install make
apt-get install linux-source kernel-package
apt-get install linux-kernel-headers
apt-get install linux-headers
apt-get install linux-headers-2.6.28-11-server # <-- or whatever matches your version.

# Install other needed stuff

aptitude install libconfig-tiny-perl libcupsimage2 libcups2 libmime-lite-perl libemail-date-format-perl libfile-sync-perl libfreetype6 libspandsp1 libtiff-tools libtiff4 libjpeg62 libmime-types-perl libpaper-utils psutils libpaper1 ncurses ncurses-dev libncurses-dev libncurses-gst ncurses-term libnewt libnewt-dev libnewt-pic libxml2 libxml2-dev libspandsp-dev libspandsp1

# Change to the proper directory

cd /usr/src/

# Get asterisk

svn co http://svn.digium.com/svn/asterisk/trunk asterisk

# or for 1.6.2 comment out the above line, and uncomment the line below.

#svn co http://svn.digium.com/svn/asterisk/branches/1.6.2/ asterisk

# Get DAHDI Kernel

svn co http://svn.digium.com/svn/dahdi/linux/trunk dahdi-kernel

# Get DAHDI Tools

svn co http://svn.digium.com/svn/dahdi/tools/trunk dahdi-tools

# Get libpri

svn co http://svn.digium.com/svn/libpri/branches/1.4/ libpri

# Compile libpri

cd /usr/src/libpri


# Compile the DAHDI kernel

cd /usr/src/dahdi-kernel

make install

# Compile the tools

cd /usr/src/dahdi-tools

make install
make config

# Compile asterisk

cd /usr/src/asterisk
make install

That's it! Hopefully that should take some of the configuration headaches out of installing Asterisk on a fresh Ubuntu system.

My original post was first published at the link below, which has some debugging discussion you may find useful.

Original Article:
Enjoy this complimentary article view.

Get unlimited access to our entire library of technical procedures, guides, and tutorials written by certified industry professionals.

Get 7 days free
Click here to view the full article

Using this article for work? Experts Exchange can benefit your whole team.

Learn More
Experts Exchange is a tech solutions provider where users receive personalized tech help from vetted certified professionals. These industry professionals also write and publish relevant articles on our site.
Ask questions about what you read
If you have a question about something within an article, you can receive help directly from the article author. Experts Exchange article authors are available to answer questions and further the discussion.
Learn from the best.