BreadCrumbs: Asterisk Install

Asterisk Install

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:37, 2 May 2007 (edit)
Ljackson (Talk | contribs)
(Compile zaptel (and libpri))
← Previous diff
Revision as of 00:44, 2 May 2007 (edit)
Ljackson (Talk | contribs)
(Compile zaptel (and libpri))
Next diff →
Line 40: Line 40:
=== Compile zaptel (and libpri) === === Compile zaptel (and libpri) ===
-Some people have issues with linking to there kernel headers if you get errors like this:+Some people have issues with linking to there kernel sources. If you get errors like this:
You do not appear to have the sources for the kernel installed. You do not appear to have the sources for the kernel installed.
Line 48: Line 48:
ln -s /lib/modules/`uname -r`/build/ `uname -r` ln -s /lib/modules/`uname -r`/build/ `uname -r`
-To build for Linux 2.6, first you must be sure that you have a+Now you are ready to configure and compile zaptel. Change to the zaptel directory and lets get dirty!
-symlink to your linux-2.6 sources in /usr/src/linux-2.6. The 2.6+
-kernel no longer needs the full sourcecode to build against it. You +
-can create the symlink to /lib/modules/`uname -r`/build/ and then+
-you can type:+
cd /usr/src/asterisk/zaptel* cd /usr/src/asterisk/zaptel*
 +
 +Lets check out what it is actually installing and then save the make config by pressing 'x'
 +
 + make menuconfig
 +
 +Now you are ready to make if everything goes right you shouldn't see any errors.
 +
make make
 +
 +Now install...
 +
make install make install
-Note that you will also need CRC-CCITT functions compiled+If everything went well you should end up with something like this and your prompt returning below.
-with your kernel or as a kernel module. These can be+ 
-selected from the "Library Routines" submenu during kernel+<pre>
-configuration via "make menuconfig"+Building /etc/modprobe.d/zaptel...
 +***
 +*** WARNING:
 +*** If you had custom settings in /etc/modprobe.d/zaptel,
 +*** they have been moved to /etc/modprobe.d/zaptel.bak.
 +***
 +*** In the future, do not edit /etc/modprobe.d/zaptel, but
 +*** instead put your changes in another file
 +*** in the same directory so that they will not
 +*** be overwritten by future Zaptel updates.
 +***
 +</pre>
 + 
 +Last we have to generate the configuration files.
 + 
 + make config

Revision as of 00:44, 2 May 2007

Contents

Fedora Core

Summary

A friend called and asked me for some help installing Asterisk 1.4 on his system so lets begin.

Download the tars from digium

Make yourself a nice little place to place in /usr/src/

mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://ftp1.digium.com/pub/asterisk/asterisk-1.4.4.tar.gz
wget http://ftp1.digium.com/pub/asterisk/asterisk-addons-1.4.1.tar.gz
wget http://ftp1.digium.com/pub/zaptel/zaptel-1.4.2.1.tar.gz
wget http://ftp1.digium.com/pub/libpri/libpri-1.4.0.tar.gz

Extract the tars

tar zxvf asterisk-1.4.4.tar.gz
tar zxvf asterisk-addons-1.4.1.tar.gz
tar zxvf libpri-1.4.0.tar.gz
tar zxvf zaptel-1.4.2.1.tar.gz

Check the Kernel for compatibility

This is probably the most complex part so pay attention.

You will need the kernel sources to compile zaptel sounds easy right? Wrong with dual core CPUs being so common these days you need to make sure you have either one core or 1< cores.

For those of you with only one core issue this command:

yum install kernel-devel

For those of you with more than one issue this command:

yum install kernel-smp-devel

Compile zaptel (and libpri)

Some people have issues with linking to there kernel sources. If you get errors like this:

You do not appear to have the sources for the kernel installed.

You need to symlink to the kernel source as stated in the Readme.Linux26

ln -s /lib/modules/`uname -r`/build/ `uname -r`

Now you are ready to configure and compile zaptel. Change to the zaptel directory and lets get dirty!

cd /usr/src/asterisk/zaptel*

Lets check out what it is actually installing and then save the make config by pressing 'x'

make menuconfig

Now you are ready to make if everything goes right you shouldn't see any errors.

make

Now install...

make install

If everything went well you should end up with something like this and your prompt returning below.

Building /etc/modprobe.d/zaptel...
***
*** WARNING:
*** If you had custom settings in /etc/modprobe.d/zaptel,
*** they have been moved to /etc/modprobe.d/zaptel.bak.
***
*** In the future, do not edit /etc/modprobe.d/zaptel, but
*** instead put your changes in another file
*** in the same directory so that they will not
*** be overwritten by future Zaptel updates.
***

Last we have to generate the configuration files.

make config
Personal tools