BreadCrumbs: Asterisk Install
Asterisk Install
From Luke Jackson
(Difference between revisions)
Revision as of 00:08, 2 May 2007 (edit) Ljackson (Talk | contribs) (→Compile zaptel (and libpri)) ← Previous diff |
Revision as of 00:19, 2 May 2007 (edit) Ljackson (Talk | contribs) (→Compile zaptel (and libpri)) Next diff → |
||
Line 25: | Line 25: | ||
=== Compile zaptel (and libpri) === | === Compile zaptel (and libpri) === | ||
+ | |||
+ | We need to symlink to our kernel source as stated in the Readme.Linux26 | ||
+ | |||
+ | /lib/modules/`uname -r`/build/ | ||
+ | |||
+ | To build for Linux 2.6, first you must be sure that you have a | ||
+ | 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* | ||
- | cp ztdummy.c ztdummy.c.orig | ||
- | sed -i "s/if 0/if 1/" ztdummy.c | ||
make | make | ||
+ | make install | ||
+ | |||
+ | Note that you will also need CRC-CCITT functions compiled | ||
+ | with your kernel or as a kernel module. These can be | ||
+ | selected from the "Library Routines" submenu during kernel | ||
+ | configuration via "make menuconfig" |
Revision as of 00:19, 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
Compile zaptel (and libpri)
We need to symlink to our kernel source as stated in the Readme.Linux26
/lib/modules/`uname -r`/build/
To build for Linux 2.6, first you must be sure that you have a 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* make make install
Note that you will also need CRC-CCITT functions compiled with your kernel or as a kernel module. These can be selected from the "Library Routines" submenu during kernel configuration via "make menuconfig"