Dadhi you do not appear to have sources for kernel installed

DAHDI installation Kernel Source missing

Topic: You do not appear to have the sources for the kernel installed

You do not appear to have the sources for the kernel installed

  Overview: Dahdi Kernel source missing

    You might have received the error "You do not appear to have the sources for the kernel installed" while installing the DADHI driver in the linux

  About DAHDI:

    DAHDI is a collection of open source drivers, for linux, that are used to interface with a variety of telephony related hardware. 
It consists of two parts.
The DAHDI-Linux project contains the individual board drivers for the supported hardware. 
The DAHDI-Tools project contains an assortment of user space utilities that are used to setup and test the drivers.   

  Cause of the Issue:

    You might not installed the latest Kernel in you linux server or you might have installed older dahdi version which not supporting the current kernel version installed.

  Workaround: Dahdi kernel source issue

    Follow the below steps to resolve the dahdi kernel source missing issue.

  Workaround 1: Latest Kernel and Kernel-devel installation

    Before proceeding with the DAHDI installation you have to install the latest kernel and kernel devel package , run the below command to update or install latest kernel

yum install kernel*
yum update kernel*
yum install kernel-devel


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


  workaround 2: Kernel version in Grub file 

    Sometimes the installed kernel version might not be updated properly in the grub file, the grub file still refers to the old kernel version
Follow the below steps to update the kernel version in grub file
Run the below command to check the kernel version

uname -r
make note of the version displayed, now run yum install kernel  you might see different kernel version already installed, if it shows different update the kernel version installed in grub.conf
vi /boot/grub/grub.conf

Check the kernel version updated in grub file, replace it with kernel installed.
once updated reboot the server once to take effect the new kernel version, followed 
to that install dahdi again.
If still fails and displays same error follow the next workaround.

  Workaround 3: Softlink kernel 

    This is a Temporary workaround to resolve the dahdi kernel issue. run the below command to softlink the kernel version with the build
ln -s /usr/src/kernels/2.6.32-573.12.1.el6.x86_64/ build
reinstall dahdi

  Workaround 4: Editing the Dahdi Source code

    Download the latest Dahdi Software from the asterisk website, unzip or untar the file and edit the source code as shown below ,followed to that proceed with the dahdi installation

cd /usr/src
untar dahdi-linux-complete-current.tar.gz
cd /usr/src/asterisk/dahdi-linux-complete-3.1.0+3.1.0/

Now edit the file 

vi /usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/include/dahdi/kernel.h
#include: </linux/pci-aspm.h>

Once file saved proceed with the dahdi installation 
dahdi installation steps

make all
make install
make config


    For professional support reach me on skype:striker24x7 

Next Post Previous Post
  • gopi baskar
    gopi baskar April 4, 2022 at 11:32 AM

    Dahdi - You do not appear to have the sources for the kernel installed.

Add Comment
comment url