Hi,
In my scenario, I have to reinstall Dahdi in a FreePBX. So, I am using a FreePBX image from asterisk org and dahdi 3.1.0 also provided there.
When I run make in the dahdi installation folder, I get the message “You do not appear to have the sources for the 3.10.0-957.21.3.el7.x86_64 kernel installed.”
I already tried some of the suggestions I could find here and there like:
yum install kernel-devel kernel-headers
yum install kernel-$(uname -r)
yum install kernel-devel-$(uname -r)
ln -s /usr/src/kernels/$(uname -r) build
My system is:
[[email protected] dahdi-linux-complete-3.1.0+3.1.0]# hostnamectl
Static hostname: freepbx.sangoma.local
Icon name: computer-vm
Chassis: vm
Machine ID: 06c44c046c6b4ab981f384417717873a
Boot ID: 7064fa0513ef4ae0a82cf734ad0d5f40
Virtualization: kvm
Operating System: Sangoma Linux 7 (Core)
CPE OS Name: cpe:/o:sangoma:sng:7::server:utf8
Kernel: Linux 3.10.0-957.21.3.el7.x86_64
Architecture: x86-64
Make output:
[[email protected] dahdi-linux-complete-3.1.0+3.1.0]# sudo make
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 3.10.0-957.21.3.el7.x86_64 kernel installed.
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux'