Can not to install DAHDI

Good day!

I Can not to install DAHDI.
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.

yum install kernel-devel

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

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.

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

Ii is not helped.

rpm -qa | grep kernel

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.

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.

It’s halped. Thank You!