[Asterisk-Users] Do I *need* to compile zaptel?
John Koyle
john.koyle at gmail.com
Fri Oct 29 07:50:03 MST 2004
On Fri, 29 Oct 2004 11:52:36 +0400, Jean-Michel Hiver
<hiver.j at wanadoo.fr> wrote:
> Dave Cotton wrote:
>
> >On Fri, 2004-10-29 at 10:48 +0400, Jean-Michel Hiver wrote:
> >
> >
> >
> >>Now I don't have any digium hardware in this box, so I wanted to use the
> >>ztdummy driver before starting asterisk. However 'modprobe ztdummy'
> >>tells me that module ztdummy is not found.
> >>
> >>Is there a way to install ztdummy pre-compiled or is it necessary to
> >>compile it?
> >>
> >>
> >
> >If the person who packaged it didn't include ztdummy you must compile
> >it.
> >
> >In the Makefile look for # ztdummy and remove the #
> >
> >On y go.
> >
> >
> Oh I have done that... the reason for which I am trying to *avoid*
> compilation is because I can't compile it to start with :-)
>
> Here is what I do:
>
> cd /usr/src/zaptel
> make clean
> make linux26
>
> It all goes OK until it enters directory '/usr/src/linux-2.6.7'.
>
> CC [M] /usr/src/zaptel/zaptel.o
> In file included from /usr/src/zaptel/zaptel.c:40:
> /usr/src/zaptel/zconfig.h:10:27: linux/version.h: No such file or directory
> <then a lot of garbage error messages>
You'll need to get the kernel source for 2.6.7.
apt-get install kernel-source.2.6.7
Once that's installed, untar it in /usr/src/ and make a symlink to it.
/usr/src/linux -> /usr/src/kernel-source-2.6.7.
cd /usr/src
tar xjvf kernel-source-2.6.7.tar.bz2
ln -s kernel-source-2.6.7 linux
Next, cd to /usr/src/linux and copy /boot/config-2.6.7-1-686 to
/usr/src/linux/.config
cp /boot/config-2.6.7-1-686 .config
Finally, you'll need to setup the sources:
make oldconfig
make include/asm
make include/linux/version.h
make SUBDIRS=scripts
This is how I do it - I know the 2.6 kernel is supposed to have an
easier way, but I've not seen/read how to do it yet.
HTH,
John
More information about the asterisk-users
mailing list