Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

General discussions about Asterisk.

Moderators: Moderator, Support

Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

Postby powerponch » Tue Dec 29, 2015 5:00 pm

Hello everybody. I've been trying to install the DAHDI driver tar dahdi-linux-complete-2.10.0.1+2.10.0.1 on a CentOS 6.6 server. When I input the make command, I get the following error:

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

I've already done a kernel update with the command yum install kernel-devel, but still got the same error.

Is the problem the version of DAHDI I'm trying with or the CentOS version instead?
Regards and thanks in advance
powerponch
Newsterisk
 
Posts: 4
Joined: Wed Sep 02, 2015 6:47 am

Re: Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

Postby david55 » Wed Dec 30, 2015 11:41 am

This can happen if you boot from a version that is different from the one for which you installed the -devel package.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

Postby ambiorixg12 » Wed Dec 30, 2015 1:14 pm

A note from the Asterisk docs

Another dependency is required for installing DAHDI, and that is the kernel source. It is important that the kernel version being used match exactly that of the kernel source being installed. You can

use uname -a to verify the currently running kernel version:

Code: Select all
CentOS: sudo yum install kernel-devel-`uname -r`


Code: Select all
Ubuntu: sudo apt-get install linux-headers-`uname -r`


The use of uname -r surrounded by backticks (`) is for filling in the currently running kernel version so the appropriate package is installed.
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic

Re: Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

Postby powerponch » Wed Dec 30, 2015 2:02 pm

Thanks for the fast reply. I'm a bit confused with this issue: if I input the command for installing the kernel-devel packages that match my OS version, I get the following error:

yum install kernel-devel-`uname -r` =>
No package kernel-devel-2.6.32-504.el6.x86_64 available.

If I check my version with uname -a, I get the following: 2.6.32-504.el6.x86_64

Why can't I install my specific packages in order to install the DAHDI drivers? I'm really stuck with this
Thanks in advance ...
powerponch
Newsterisk
 
Posts: 4
Joined: Wed Sep 02, 2015 6:47 am

Re: Cannot install DAHDI Driver CentOS 6.6 (OS sources problem)

Postby powerponch » Thu Dec 31, 2015 11:03 am

A friend helped me finding the solution! Turns out that my CentOS didn't refresh the symbolic link of the kernel. When navigating to /lib/modules/`uname -r` and inspecting with ls -l, the symbolic link build appeared as corrupt (red shaded) with the following route:

build -> ../../../usr/src/kernels/2.6.32-504.el6.x86_64

What I did was to change it to the proper version with the following commands:

rm build
ln -s /usr/src/kernels/2.6.32-573.12.1.el6.x86_64/ build


Dunno why this link wasn't refreshed at first by the OS, but well I leave this solution for anyone facing the same problem.

Afterwards, I returned to my DAHDI folder and I could execute the make command succesfully
powerponch
Newsterisk
 
Posts: 4
Joined: Wed Sep 02, 2015 6:47 am


Return to Asterisk General

Who is online

Users browsing this forum: Google [Bot] and 2 guests