Can not to install DAHDI


#1

Good day!

I Can not to install DAHDI.
Errors:
You do not appear to have the sources for the 4.4.87-1.e17.elrepo.x86_64 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/root/dahdi-linux-complete-2.11.1+2.11.1/linux’
make: *** [all] Error 2.

Please, help me.


#2

yum install kernel-devel


#3

My system CentoOS 7 and kernel 4.4.87-1.e17.elrepo.x86_64

I run command: yum install kernel-devel
In end - Nothing to do


#4

In order to install Dadhi you need the kernel devel package, if you already installed it and didn’t rebooted your machine then do it probably you are not compiling against the fresh devel package. Do:

rpm -qa | grep kernel

To see what you have installed.


#5

The kernel-devel package needs to match the booted kernel, but yum will install the latest version.


#6

Ii is not helped.

rpm -qa | grep kernel
kernel-lt-4.4.87-1.e17.elrepo.x86_64
kernel-tools-3.10.0-514.26.2.e17.x86_64
kernel-headers-3.10.0-514.26.2.e17.x86_64
kernel-devel-3.10.0-514.26.2.e17.x86_64
kernel-ml-4.13.0-1.e17.elrepo.x86_64
kernel-tools-libs-3.10.0-514.26.2.e17.x86_64


#7

I would take this up with El Repo, as it looks like you need their kernel devel packages for a a much more recent kernel. This is a general issue related to compiling device drivers, it is not specific to Asterisk and it looks like the El Repo part of your configuration is why the normal advice doesn’t work.


#8

Also, as you seem to be using a kernel that is radically ahead of the CentOS7 kernel, there is a good chance that dahdi will not support your kernel, even when you do have the correct kernel-devel package.


#9

It’s halped. Thank You!