Wednesday, October 5, 2011

Installing Asterisk 10 from source on Ubuntu 11.04 Server



If you are wanting to test out the latest version of asterisk I have compiled a tutorial here to try and help you out.

I am now sitting in-front of a nice clean install of Ubuntu 11.04 Server.   I have updated and upgraded my repo's and I am ready to get started with installing Asterisk.  If you need to know how to update apt-get there is good documentation here.

First thing to do is to gather the required tools needed to build our asterisk system. Since we will be compiling Asterisk from scratch we will need the gcc compiler and necessary libs to compile. The following should be all required libs for Asterisk, I am not using pri or any analog technology, but I have included the libs just in-case you are.
sudo apt-get install build-essential libmyodbc libncurses5 libncurses5-dev  linux-headers-`uname -r` libssl-dev libnewt-dev zlib1g zlib1g-dev unixodbc unixodbc-dev libtool libxml2-dev libsqlite3-dev sqlite3
Next we will download our source files. First start out by getting the link for your download from www.asterisk.org/Downlaods.  Then we will want to change directories to /usr/src/ and use wget to download our source files. and then decompress the source files using tar.
cd /usr/src
sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.0.0-beta1.tar.gz
sudo tar -zxvf asterisk-10.0.0-beta1.tar.gz
Now we should have everything we need to begin installing!  Go ahead and change to a sudo shell and start configuring...
sudo -s
cd asterisk-10.0.0-beta1
./configure
make menuselect 
make install
You should now have a working version of Asterisk 10.0.0 Beta 1

1 comment: