tar zxvf dahdi-linux-complete-2.4.1.2+2.4.1.tar.gz
cd dahdi-linux-complete-2.4.1.2+2.4.1
make all
Error Message:
make -C linux all
make[1]: Entering directory /usr/src/asterisk/dahdi-linux-complete-2.4.1.2+2.4.1/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/asterisk/dahdi-linux-complete-2.4.1.2+2.4.1/linux/drivers/dahdi/firmware’
make[2]: Leaving directory /usr/src/asterisk/dahdi-linux-complete-2.4.1.2+2.4.1/linux/drivers/dahdi/firmware' You do not appear to have the sources for the 2.6.18-164.15.1.el5xen kernel installed. make[1]: *** [modules] Error 1 make[1]: Leaving directory/usr/src/asterisk/dahdi-linux-complete-2.4.1.2+2.4.1/linux’
make: *** [all] Error 2
updates: mirror.ash.fastserv.com
addons | 951 B 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
rpmforge | 975 B 00:00
updates | 1.9 kB 00:00
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
No package kernel-devel available.
Nothing to do
Below is the output by running the below commands:
You need to install the version for your kernel. You appear to have a version for a more recent kernel. Either upgrade your kernel to match, or force the version number on the yum install.
As must yum repositories don’t carry many old versions, if you want to stay with the current kernel, you may need to source the RPM from elsewhere. If updating the kernel, make sure that you set the bootstrap to load that version.
Works for me. CentOS 5.6 + dahdi-linux-complete-2.4.1.2+2.4.1 + asterisk-1.8.5.0
kernel: 2.6.18-238.19.1.el5xen and 2.6.18-238.19.1.el5
I suspect the original posters problem was that after he did a yum update which caused a new kernel to be installed, he had not rebooted to put that kernel into effect.
At least that is what I was able to duplicate under my test environment.