After getting the source, we need to compile. To accomplish this we follow the instructions given previously in "General Installation".
Here are the steps again:
#cd /usr/src/asterisk/libpri
#make
#make install
#cd /usr/src/asterisk/zaptel
#make linux26
#make install
#cd /usr/src/asterisk/asterisk
#make mpg123
Before making Asterisk we have to install mpg123 package (to be able to play mp3 files for music on hold). Note: Install only the mpg123 packages that come with Asterisk!!
#make
#make install
#make samples
Note: Since we have kernel 2.6 on the Debian Server, we use 'make linux26'.
Error warnings and their solutions:
If you try to make asterisk and you get the warning: Make not found, do
apt-get install make
If you get the error: gcc not found, do
apt-get install gcc
If you get the error "C compiler cannot create executables."
apt-get install libc-dev
If you get the error: "termcap support not found", you clearly didnt read the above text well enough, apt-get install libncurses5-dev will fix that for you.
-
pbx_dundi.c:44:18: zlib.h: No such file or directory
pbx_dundi.c: In function `update_key':
pbx_dundi.c:1326: warning: implicit declaration of function `crc32'
pbx_dundi.c: In function `dundi_decrypt':
pbx_dundi.c:1382: warning: implicit declaration of function `uncompress'
pbx_dundi.c:1382: error: `Z_OK' undeclared (first use in this function)
pbx_dundi.c:1382: error: (Each undeclared identifier is reported only once
pbx_dundi.c:1382: error: for each function it appears in.)
pbx_dundi.c: In function `dundi_encrypt':
pbx_dundi.c:1407: warning: implicit declaration of function `compress'
pbx_dundi.c:1408: error: `Z_OK' undeclared (first use in this function)
make[1]: *** [pbx_dundi.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.0-beta2/pbx'
make: *** [subdirs] Error 1
JasonCaM (painkillerfer at hotmail dot com) 08 February 2017 13:24:18 study ended this <a href=http://onlinecasinos-x.com/>casino</a> where you can conquer real money with the help of this guidebookPlaying <a href=http://onlinecasinos-x.com/bitcoin-casino.html>bitcoin casino bonus</a>
Satch (s4gtxhwj at hotmail dot com) 21 April 2016 03:20:09 Articles like these put the consumer in the driver seat-very imtaoprnt. http://yrdupe.com [url=http://lhzrcyxgw.com]lhzrcyxgw[/url] [link=http://lkzysuosq.com]lkzysuosq[/link]
Bobs (q60r5msry at mail dot com) 19 April 2016 14:33:23 Your article was <a href="http://djyrsjguda.com">excnlleet</a> and erudite.
HuynKuy (clelesscg at gmail dot com) 09 October 2015 09:32:50 I never went to university <a href="http://nmgcrazdv.com">praegnnt</a> models escorts this guys got sum stammina but i think i can out do him with my cock anyday,check out my pics and leave your ratings and comments
Sony (z9te70ksud at hotmail dot com) 25 September 2015 13:35:45 #18 parents in need of a visit from Child Protective Services talk about poor pannetirg skills. These women should have their tubes tied and thier kids taken away.
john (johnafunk at yahoo dot com) 26 June 2009 17:01:57 I agree with Tim, compiling this while using any debian based system is STUPID! use the pre-made binary.
sudo apt-get install asterisk
This takes care of ALL the dependancies and gets a working system up and running in about 5 minutes.
Now if you could explain how the latest installation .conf files work then you would be useful. right now you are years out of date.
GreyCardinal (aifilosof at ya dot ru) 11 February 2009 19:48:54 > You do not appear to have the sources
I've installed
ou do not appear to have the sources:
sudo apt-get install linux-headers-2.6.xx-x-686
sudo apt-get install linux-tree (not sure it needed)
sudo apt-get install linux-source-2.6.xx
satendra verma (vermasatendra at yahoo dot com) 13 January 2009 11:14:35 which version of linex the most suitable for asterisk 1.6 as suse10 server,RedHat5.0 server etc.
Tim (kelletim at gmail dot com) 21 November 2008 03:20:34 uh, why not just use the asterisk packages that are already made for debian?
kiennd (kiennd dot sfoft at gmail dot com) 05 September 2008 04:38:07 I like it!
Domenico Riccio (muehuehu at yahoo dot it) 03 September 2008 18:01:10 install build-essential package too :)
Dar (darleys at gmail dot com) 03 September 2008 08:24:43 if u get
"You do not appear to have the sources for the 2.6.18-3-686 kernel installed."
just install the Linux Headers for that kernel and it will work.
Need not install Kernel Sources until otherwise u require.
Nur Cholikul Anwar (ok_anwar at yahoo dot com) 09 August 2008 12:38:10 Terimakasih Asterisk Guru Atas Infonya, Nur Cholikul Anwar, Teknik Telekomunikasi 2005-2008 Politeknik Negeri Jakarta
domeen (domeen at interia dot pl) 15 July 2008 22:31:48 Hello All!
khalilbo (ibrahima dot fall at hotmail dot com) 09 July 2008 11:44:57 Bonjour,
j'essais d'installer zaptel avec debian et j'ai ce message d'erreur
make[3]: quittant le répertoire « /usr/src/asterisk/zaptel-1.4.11/menuselect/mxml »
gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses
make[2]: quittant le répertoire « /usr/src/asterisk/zaptel-1.4.11/menuselect »
make[1]: quittant le répertoire « /usr/src/asterisk/zaptel-1.4.11/menuselect »
make[1]: entrant dans le répertoire « /usr/src/asterisk/zaptel-1.4.11 »
echo "You do not appear to have the sources for the 2.6.18-3-686 kernel installed."
You do not appear to have the sources for the 2.6.18-3-686 kernel installed.
exit 1
make[1]: *** [modules] Erreur 1
make[1]: quittant le répertoire « /usr/src/asterisk/zaptel-1.4.11 »
make: *** [all] Erreur 2
si vous pouvez me donner un cou de main merci!
mcheikh (mcheikh1987 at hotmail dot com) 06 June 2008 14:08:20 comment installer asterisk à partir des fichiers deb
martin (bob_jesus at yahoo dot com) 23 March 2008 13:42:31 I saw some updates and soft for it at http://loadingvault.com
Bharghavi (ch_lavanyareddy at yahoo dot com) 28 June 2007 14:47:26 Hi,
Can you please tell which OS other than RedhatAS4 and Solaris can support Sun Java Calender Server6.3 of Sun java communication suite5.
Thanks in Advance,
Bharghavi.
Sam (snowsam at laurel-point dot net) 15 June 2007 23:25:38 To solve the error:
"You do not appear to have the sources for the 2.6.15-27-686 kernel installed."
Follow Achille's solution on March 15th. It works!!
Sam
Michail (bla at bla dot bla) 25 April 2007 16:40:45 The configure script must be executed before running 'make'.
Wtf?
Achille (achille dot furente at gmail dot com) 15 March 2007 11:46:46 To solve the error:
"You do not appear to have the sources for the 2.6.15-27-686 kernel installed.
in compiling zaptel, just make a symbolic link in /usr/src as following
cd /usr/src
ln -s kernel-headers-2.6.8-3/ linux
Reaper (megahohol at gmai dot com) 28 November 2006 16:48:32 libusb-dev fot ppls who got errors on xpp/utils compilation
vin (dragons_tiger_downcast at yahoo dot com) 01 November 2006 05:01:28 i wonder why don't you use proxy
pete (ptp_is at yahoo dot com) 19 October 2006 02:41:30 I been working on getting Asterisk working for about a week. Why does everyone compile from CVS source? It seems like aptitude install <this that and everything> seems to work. Unless,that is, I'm missing something.
hernandezz (carjer at gmail dot com) 10 October 2006 19:35:21 hi please help me!!!
when i install the Zapata this appears...
"You do not appear to have the sources for the 2.6.15-27-686 kernel installed.
David McNeill (davemc at atmcpond dot dot dot co dot dotnz) 26 August 2006 12:53:22 > The problem is that the kernel 2.6.8-2 (and I believe that 2.4.27-2 too) are compiled using gcc-3.3 (the stable version of gcc in sarge), and I was trying to compile zaptel using gcc-4.0.
> Changing to gcc-3.3 zaptel its compile normaly.
But how do you tell gcc to use 3.3 and not 4.0. Using export CC=gcc-3.3 does not seem to work.
lfirpo (luis dot firpo at gmail dot com) 24 August 2006 17:00:59 I have compiled and installed libpri-1.2.3,zaptel-1.2.6 and asterisk-1.2.9.1 in debian sarge 3.1 kernel 2.6.8-2-386,
the process runs all ok.
but when i run asterisk the only response is "Instruccion ilegal" in spanish.
Can you help me?
Thanks
kenny (v2oip at hotmail dot com) 18 August 2006 04:24:16 say.c: In function `ast_say_number_full_es':
say.c:1079: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
make: *** [say.o] Error 1
====================
could you help me?
what's means?
in linux debian 2.6.8.3-686,asterisk version is 1.2.10
Tavares (ltavares at logistech dot com dot br) 14 August 2006 17:52:23 Installation Asterisk on Debian
james inton (jamjem24 at yahoo dot com) 04 July 2006 09:10:02 thanks for the info...hehehehe
Orhan Duyar (po at po dot pp) 03 July 2006 11:11:44 thank you
Progfou (jean-christophe dot andre at auf dot org) 13 June 2006 12:02:09 To make kernel module compilation on Debian, install the kernel-headers serie package corresponding to your current kernel, eg:
apt-cache search kernel-headers-2.6.8
apt-get install kernel-headers-2.6.8-3-686
Krešimir (kec1976 at gmx dot de) 07 June 2006 18:17:15 Hi,
concerning the zaptel compilation message - "You do not appear to have the sources for the 2.6.8-2-386 kernel installed." -
I tried to obtain 2.6.8-2-386 kernel sources, but Debian offers only 2.6.8 version. Where to get them?
Thanks.
Marcos Hack (marcoshack at gmail dot com) 11 May 2006 05:35:29 I don't see a solution posted about error below. Then here is the solution in my case:
The problem is that the kernel 2.6.8-2 (and I believe that 2.4.27-2 too) are compiled using gcc-3.3 (the stable version of gcc in sarge), and I was trying to compile zaptel using gcc-4.0.
Changing to gcc-3.3 zaptel its compile normaly.
=== error ===
/lib/modules/2.4.27-2-386/build/include/asm/processor.h: At top level:
/lib/modules/2.4.27-2-386/build/include/asm/processor.h:75: error: array type has incomplete element type
zaptel.c: In function '__zt_receive_chunk':
zaptel.c:6174: warning: pointer targets in assignment differ in signedness
make: *** [zaptel.o] Error 1
=============
Tarquin (user at example dot net) 05 May 2006 17:21:21 Note for people trying to get this working on more recent Debian distributions ("etch", which is the testing distribution at time of writing, or newer): the kernel-image and kernel-source packages have CHANGED NAMES. (This is why you may think you can't find any kernel packages newer than 2.6.8.) You now want linux-image-<version>, linux-source-<version>, and so on.
Also note that standard Debian kernel/linux source/image packages DO NOT track anything beyond the subminor version number (the Z in kernel x.y.z), so there is no specific package for, say, 2.6.8-2: only 2.6.8, which will get you whatever the latest revision of that version happens to be. You can get kernel-headers/linux-headers packages for specific revisions (though only for some revisions: for instance, they're currently present in etch for 2.6.8-3 and 2.6.8-12, but no others); if you want the full source, then install the kernel-source or linux-source package for the version you want, then follow the instructions at http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-getting to roll it back to the revision you want.
Obviously, if the Debian packages have not yet caught up to the revision you're using, you'll have to get it from the kernel.org mirrors yourself - but if you're using a kernel newer than Debian supply, you've already done that. Also, as long as you don't need bleeding-edge CVS features, just using the standard Debian "asterisk" packages will make your life MUCH easier.
me (me at rollo dot org) 12 April 2006 08:33:16 nice and simple - nice to see this
Rodrigo Sertori (rsertori at gmail dot com) 20 March 2006 18:11:24 I was trying to build asterisk 1.2.5 from CVS. During the compilation process an error ocurred -> #error "You need newer libpri"... After many trials and research, I noticed that the libpri+asterisk on the CVS is not correct. So, get the last version directly from Digium's ftp server.
joe (joe at kanzler dot ms) 31 January 2006 17:04:35 hi ryan,
you could create the needed files with
mkdir -p /dev/zap
mknod /dev/zap/ctl c 196 0
mknod /dev/zap/timer c 196 253
mknod /dev/zap/channel c 196 254
mknod /dev/zap/pseudo c 196 255
ryan (ryanalupa at hotmail dot com) 30 January 2006 10:55:45 hi all! i'm having problem installing zaptel in debian etch. i always get /dev/zap error, it says no such file or directory, what else do i miss to get before installing, i followed the howtos step by step and still getting errors in zaptel...pls help!
Chris (Chris at AsteriskBlog dot com) 13 January 2006 15:26:10 Duluu has got it right. If you're using debian, the EASIEST way to do it all is just to run an "apt-get install asterisk" command. It will all download and automatically intall.
Also someone mentioned for sample config files, run "make sample". While that's all good and dandy, I don't think it will do anything. If you add an s onto the end tho to make it "make samples" it will work though.
Zaza (rafizaza at yahoo dot com) 22 December 2005 17:49:40 try to get headers... of your version of kernel.
JR (j dot rudinsky at email dot cz) 22 December 2005 16:28:55 Hi,
concerning the zaptel compilation message - "You do not appear to have the sources for the 2.6.8-2-386 kernel installed." -
I tried to obtain 2.6.8-2-386 kernel sources, but Debian offers only 2.6.8 version. Where to get them?
Thanks.
Jose (jose dot alarcon dot roldan at gmail dot com) 18 December 2005 13:36:08 Hi, get this error when trying to install asterisk:
"for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do make -C $x depend || exit 1 ; done
make: *** res: No existe el fichero o el directorio. Alto.
make: *** [depend] Error 1"
I followed all the instructions, so i don't know where is the error. I am usning ububtu.
Thanks in advance!
sean (sh at onyx dot net) 08 December 2005 13:34:51 Following on from Marcelo Lobo's comment, I'm seeing the same error when building on a 2.4 kernel (Debian kernel 2.4.27-2-386).
/lib/modules/2.4.27-2-386/build/include/asm/processor.h: At top level:
/lib/modules/2.4.27-2-386/build/include/asm/processor.h:75: error: array type has incomplete element type
zaptel.c: In function '__zt_receive_chunk':
zaptel.c:6174: warning: pointer targets in assignment differ in signedness
make: *** [zaptel.o] Error 1
This is just to point out that it doesn't seem to be kernel specific, as I had hoped it was...
zoa (support at asteriskguru dot com) 06 December 2005 20:37:10 You need the exact kernel sources for 2.6.8-2-386,
Do a apt-cache search 2.6.8 and then do apt-get "the right line"
kernel 2.6.8 is not the same as 2.6.8-2-386
AlexiF (alexis at f dot fr) 06 December 2005 16:38:09 I cannot compile zaptel-1.2.0 : make -> "You do not appear to have the sources for the 2.6.8-2-386 kernel installed."
I yet have the header package.
I tried apt-get install kernel-source-2.6.8, I also tried to download them and tar xvzf in /usr/src... I make a lot of
ln -s kernel-source linux
ln -s kernel-source linux26
ln -s kernel-source linux-2.6
ln -s kernel-source linux-2.6.8
(because I don't know what it wants)
And now I am trying to compile a new kernel...
Do you have an advice please ?
Tim Smith - Onweald.com (firstinitial_lastname at onweald dot com) 29 November 2005 21:44:15 A clean base install of debian does not include gcc or make. You must at least add "make" to debian via:
apt-get install make
I also performed an "apt-get install gcc" but I don't know that it is required.
bob (bob_jv at hotmail dot com) 23 November 2005 22:37:09 After running make install on the asterisk source files I got a message at the end that said that clock skew detected. Your build may be incomplete.
Mikel Stous (mikel at stous dot net) 21 October 2005 04:57:37 To save me time, I've added the below line to my /etc/apt/sources.list
deb http://updates.xorcom.com/rapid sarge main contrib
They have current stable packages for Asterisk.
Duluu (duluu at netsoft dot mn) 13 October 2005 07:54:06 apt-get install asterisk
or
apt-cache search asterisk
Marcelo Lobo (marcelo at oi dot com dot br) 06 October 2005 21:00:37 I followed this tutorial but I receveid the following error when I try to compile zaptel (make linux26) and I don't know how to fix it.
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
CC [M] /usr/src/asterisk/zaptel/zaptel.o
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/asterisk/zaptel/zaptel.c:44:
include/asm/processor.h:87: error: array type has incomplete element type
/usr/src/asterisk/zaptel/zaptel.c: In function '__zt_receive_chunk':
/usr/src/asterisk/zaptel/zaptel.c:6104: warning: pointer targets in assignment
iffer in signedness
make[2]: *** [/usr/src/asterisk/zaptel/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/asterisk/zaptel] Error 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
make: *** [linux26] Error 2
John B (greyhound4334 at gmail dot com) 03 October 2005 22:26:00 OK, I'm a bit confused.
The list of packages above doesn't seem to be any logical combination of packages from the basic installation. For example, "Do not forget the packages mentioned in the first tutorial." implies that I need bison-devel, but it's not listed. So is it needed?
Also, many of these package names don't exist in my debian-based ubuntu repository.
For example, I don't have ncurses or ncurses-devel. I *do* have libncurses5 and libncurses5-dev. Are those going to work for me? Also, I don't have zlib or zlib-devel. I *do* have zlib1g and zlib1g-dev. There are more examples of this inconsistency.
I don't mean to complain, but I'm trying to do some pre-installation planning and am finding this very confusing! I guess I can try things and see what happens, but I was hoping this site would answer questions, not raise them. I hope someone can clarify.
Marc Sutter (marc dot sutter at xilane dot com) 20 September 2005 18:35:24 YAVHR ( yet another very happy reader !!!) Great site ! Thank you.
Anatoliy (support at asteriskguru dot com) 16 September 2005 17:08:35 To donwload:
#cvs checkout asterisk-addons
To install:
#cd astersik-addons
#make clean
#make install
Note: It will install only format_mp3 and MySQL module (if you have installed version of MySQL).
For all other modules you have to install them manually:
- asterisk-oh323c-0.1
cd asterisk-oh323c-0.1
./configure
make
make install
make sample
- res_sqlite for SQLite3
make
make upgrade
make install
If you have other questions, post them in the forum :
http://www.asteriskguru.com/board/
Cristian (cristi at overloaded dot ro) 16 September 2005 00:46:54 Any help with installation of asterisk-addouns?
Spike Spiegel (cowboy_b3bop at liamtoh dot moc) 09 August 2005 17:33:06 Another happy reader! : )
zoa (support at asteriskguru dot com) 25 July 2005 14:21:01
I don't know how up to date the current debian packages are, but they cannot be as up to date as the cvs for the stable version.
But you are correct, its a very good suggestion to put on the tutorial.
Balu (anonymous at example dot com) 21 July 2005 23:38:55 I wonder why you aren't using the standard debian packages?
zoa (support at asteriskguru dot com) 20 June 2005 14:06:07 Whatever you like best.
We use debian, but know lots of people using redhat and they are also happy with it.
imran (abbasshah1 at hotmail dot com) 19 June 2005 22:11:19 Hi there
i have a very critical question in mind.
Which Linux Flavour will u recommend for IPPBX.Redhat. Debian or Fedora
i will wait ur reply
Abbas
Orhan Duyar (oduyar at sbcglobal dot net) 03 June 2005 15:57:02 Very helpful information. Thanks for people putting these things together.