3 days DAHDI (or Zaptel 1.4.12.1) Installation Trouble

I_
CentOS 5.3 i686, Dedicated server
required yum packages installed, updated, upgraded, rebooted
firewall and selinux disabled

II_
asterisk-1.6.1-current
dahdi-linux-complete-current
downloaded and extracted to the /usr/src

III_
root@chicago [/usr/src]# rpm -q kernel kernel-devel
kernel-2.6.18-128.1.14.el5
kernel-devel-2.6.18-128.1.14.el5
root@chicago [/usr/src]# uname -r
2.6.18-128.1.14.el5

root@chicago [/usr/src/dahdi-linux-complete-2.2.0-rc5+2.2.0-rc3]# make; make install

!!!You do not appear to have the sources for the 2.6.18-128.1.14.el5 kernel !!!installed.

IV_
root@chicago [/usr/src]# cd /lib/modules/uname -r
root@chicago [/lib/modules/2.6.18-128.1.14.el5]# rm -f build
root@chicago [/lib/modules/2.6.18-128.1.14.el5]# ln -s /usr/src/2.6.18-128.1.14.el5 build
root@chicago [/lib/modules/2.6.18-128.1.14.el5]# ll

root@chicago [/usr/src/dahdi-linux-complete-2.2.0-rc5+2.2.0-rc3]# make; make install

!!!You do not appear to have the sources for the 2.6.18-128.1.14.el5 kernel !!!installed.

Is there any IDEA?!

can you do a ls -l /usr/src and ls -l /usr/src/kernels

the current kernel source should be in /usr/src/kernels

In older versions of zaptel you needed to have a link from /usr/src/linux to the running kernel source (i.e. ln -s /usr/src/kernels /usr/src/linux) but I dont think thats required any more (I am running 32bit CentOS 5 on my servers and dont have a linux link). You may want to try that.

I ran into this last week. DAHDI looks for a configured kernel in /usr/src/linux and assumes it found one if it can locate /usr/src/linux/.config. Your kernel’s config should be in /boot/config*. Copy that to /usr/src/linux/.config. I’m running Ubuntu but I also had to install the linux-headers so make sure you have that installed along with your kernel source.

When I did last install of asterisk on CentOS I did:
yum install kernel-devel
yum update kernel
Check /boot/grub/menu.lst if new kernel is in place and if it is default kernel and then reboot.
Here are very good notes:
asteriskguru.com/tutorials/a … entos.html

From /usr/src

ln -s kernels/2.6.18-128.1.14.el5 linux

Rock 'n roll

Best

A