How to Install Asterisk on Ubuntu 9.04 / 9.10 from Scratch

AID: 2078
  • Status: Published

9100 points

  • ByDrDamnit
  • TypeResource
  • Posted on2009-12-08 at 18:15:19
Awards
  • 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

make

# Compile the DAHDI kernel

cd /usr/src/dahdi-kernel

make
make install

# Compile the tools

cd /usr/src/dahdi-tools

./configure
make
make install
make config

# Compile asterisk

cd /usr/src/asterisk
./configure
make
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:
http://totalticketsystem.com/blog/technical-articles/how-to-install-asterisk-on-ubuntu-from-scratch/
Asked On
2009-12-08 at 18:15:19ID2078
Tags

asterisk

,

linux

,

ubuntu

Topic

Asterisk Open Source Telephony

Views
23690

Comments

Expert Comment

by: thehagman on 2010-01-16 at 03:21:40ID: 8073

Careful!
Part of this stuff requires root privileges, at least the installation parts should look as below (i.e. sudo and use correct kernel version).
Without having tried the procedure myself, I bet that also both instance of "make install" should be using sudo.

sudo apt-get install subversion make linux-source kernel-package linux-kernel-headers linux-headers linux-headers-$(uname -r)-server
sudo apt-get 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

                                        
1:
2:

Select allOpen in new window

Expert Comment

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Asterisk Experts

  1. DrDamnit

    6,120

    10 points yesterday

    Profile
    Rank: Genius
  2. jfaubiontx

    5,852

    0 points yesterday

    Profile
    Rank: Guru
  3. grblades

    4,900

    0 points yesterday

    Profile
    Rank: Genius
  4. xuserx2000

    2,000

    0 points yesterday

    Profile
    Rank: Sage
  5. kode99

    2,000

    0 points yesterday

    Profile
    Rank: Genius
  6. EyeNoVoIP

    1,500

    0 points yesterday

    Profile
  7. cmmfahim

    1,200

    0 points yesterday

    Profile
  8. raysonlee

    1,000

    0 points yesterday

    Profile
    Rank: Guru
  9. real8978

    800

    0 points yesterday

    Profile
  10. willlywilburwonka

    600

    0 points yesterday

    Profile
    Rank: Wizard
  11. Jordanlcn

    300

    0 points yesterday

    Profile
  12. nauliv

    248

    0 points yesterday

    Profile
    Rank: Master

Hall Of Fame