You do not appear to have the sources for the 3.10.0-327.28.2.el7.x86_64 kernel installed

Hello,

Alway’s having trouble installing DAHDI.

make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 3.10.0-327.28.2.el7.x86_64 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux/linux'
make: *** [all] Error 2

I m on CentOS 7,
I tried different versions :
Latest Version 2.11.1
2.10.2-rc1+2.10.2-rc1

Any help please !

You don’t have the kernel-devel package installed for the kernel that you are actually running (which might not be the most recent one installed).

Here is the solution :

yum install kernel-devel-$(uname -r)

1 Like