Problem installing zaptel and now Dahdi!

Hi all,
I’m just a newbie, trying to install asterisk using Orielly’s book.
While trying to install zaptel, I got this error:

[root@localhost zaptel-1.4.12.1]# make install
make[1]: Entering directory /usr/src/zaptel-1.4.12.1' echo "You do not appear to have the sources for the 2.6.18-128.el5 kernel installed." You do not appear to have the sources for the 2.6.18-128.el5 kernel installed. exit 1 make[1]: *** [modules] Error 1 make[1]: Leaving directory/usr/src/zaptel-1.4.12.1’
make: *** [all] Error 2

what should I do? looking for a friend to help.

  1. Throw away zaptel and get dahdi, which replaces it in current versions of Asterisk.

  2. yum install the kernel-devel package for your kernel version.

You might also want to consider updating your kernel to the current version.

well, I tried to install dahdi instead of zaptel but the error is still the same.
I have run these commands in order to install the specified kernel:

yum install -y kernel-devel (as said in the book) and after googling for how I can install 2.6.18-128.el5 kernel, I used this command too:
yum install -y kernel-devel.i686

but still the problem remains. when I use make command for dahdi-linux-2.2.0.2 it gives me this error:

make: Warning: File Makefile' has modification time 4.2e+07 s in the future make -C drivers/dahdi/firmware firmware-loaders make[1]: Entering directory/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/firmware’
make[1]: Warning: File Makefile' has modification time 4.1e+07 s in the future tar: drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o_shipped: time stamp 2008-11-11 22:00:55 is 26649497 s in the future tar: drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o_shipped: time stamp 2008-11-11 22:00:55 is 26649497 s in the future tar: drivers/dahdi/vpmadt032_loader/vpmadt032_loader.h: time stamp 2008-11-11 22:00:55 is 26649497 s in the future tar: drivers/dahdi/vpmadt032_loader: time stamp 2008-11-11 22:00:55 is 26649497 s in the future tar: drivers/dahdi: time stamp 2008-11-11 22:00:55 is 26649497 s in the future tar: drivers: time stamp 2008-11-11 22:00:55 is 26649497 s in the future make[1]: warning: Clock skew detected. Your build may be incomplete. [b]make[1]: Leaving directory/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/firmware’
You do not appear to have the sources for the 2.6.18-128.el5 kernel installed.
make: *** [modules] Error 1[/b]

can anyone help me?

I installed sources, and then new kernel, and of course reboot. Only after it - you can install zaptel/dahdi.
I am sure now you have sources you have kernel, but they are different versions. One of reasons I hate CentOS/Fedora.

Those commands would give you teh latest files, but your kernel isn’t the latest.

well, my kernel version is : 2.6.18-128.el5. (using uname -r)

but when I tried to run kernel-devel command again, this massage was shown:

“Package kernel-devel-2.6.18-128.7.1.el5.i686 already installed and latest version
Nothing to do”

I have my kernel source is in this “/usr/src/kernels/2.6.18-128.7.1.el5-i686” directory and it’s version is 2.6.18-128.7.1.el5. (which is obvious of course)

what should I do now? I think that my kernel is the latest. and I’m really confused.

P.S. sorry for knowing nothing… and thank you

The latest kernel would be 2.6.18-128.7.1.el5.i686, not 2.6.18-128.el5.i686.

You either have to install that kernel, or install the explicit version of the development packages for the the base -128 version.

The build tools do uname to find the name of the kernel-devel directory.

it is why I’m confused, when I try to :yum install kernel-devel-2.6.18-128.el5, it says the newer version is installed. I needed to be sure so I run this command:

yum install kernel-devel-2.6.18-128.7.1.el5

the result was this:
Package kernel-devel-2.6.18-128.7.1.el5.i686 already installed and latest version
Nothing to do.

BUT when I run uname -r the result is still

2.6.18-128.el5.

Dear david you said:"You either have to install that kernel, or install the explicit version of the development packages for the the base -128 version."
how can I do this? :blush:

by the way, when I opened the make file, trying to understand it’s mechanism, I just saw this:

[color=green]# If you want to build for a kernel other than the current kernel, set KVERS [/color]
KVERS:=$(shell uname -r)

I was wondering instead of letting make file do “uname -r” and give that lovely error! , can I just give “2.6.18-128.7.1.el5” to KVERS argument and save the make file again?

kernel-devel is not the kernel. It is just enough of the source code for the kernel to build a device driver.

uname is reporting the version of the running kernel package.

If you force the build against a mis-matched kernel-devel, you will not be able to load the drivers on that machine (at least not without cheating).

then what should I do? if you give me a hint, I will google it and I won’t bother you this much, I’ll promise.
just tell me how can I have the files that make needs them? is there any way to download them in /usr/src/kernels?
sorry for being such an idiot.

yum install a kernel of the same version as kernel-devel. Reboot.