[asterisk-users] Can't compile DAHDI - wrong kernel source
Thermal Wetland
thermalwetland at gmail.com
Wed Jul 14 20:28:35 CDT 2010
On Wed, Jul 14, 2010 at 4:55 AM, bruce bruce <bruceb444 at gmail.com> wrote:
>
> I am stuck with the same problem but I have used asterisk yum repository and it worked by itself without me worrying for kernel stuff.
> However, I need to install speex codec and now I am stuck as it doesn't get picked up by the yum asterisk install somehow. I have lib speex and speex already installed and when doing "yum install asterisk16" I don't see speex in "core show translation" Is there anything specific I have to do?
> Do I have to build from source as well?
> -Sorry, didn't mean to hijack the thread.
> Thanks,
> Bruce
> On Wed, Jul 14, 2010 at 5:08 AM, Chandrakant Solanki <solanki.chandrakant at gmail.com> wrote:
>>
>> Hi
>>
>> If you install rpm from any location it goes to its default location.
>>
>> You just go for above steps. For kernel you can go for http://kernel.org
>>
>> --
>> Regards,
>>
>> Chandrakant Solanki
>>
>> On Wed, Jul 14, 2010 at 2:06 PM, liuxin <nyliuxin518 at gmail.com> wrote:
>>>
>>> Hi.
>>> The best easy way is:
>>> copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
>>> then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm
>>>
>>> 2010/7/14 Gareth Blades <list-asterisk at skycomuk.com>
>>>>
>>>> Thermal Wetland wrote:
>>>> > I have a virtual server with godaddy but can not compile DAHDI as it
>>>> > complains that I do not have the correct kernel source.
>>>> >
>>>> > The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
>>>> > Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
>>>> > latest version
>>>> > Nothing to do
>>>> >
>>>> > uname -a returns:
>>>> > Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net
>>>> > <http://ip-XXX-XXX-XXX-XXX.ip.secureserver.net> 2.6.18-028stab064.7 #1
>>>> > SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
>>>> >
>>>> > When I try to compile DAHDI it fails with:
>>>> > make[2]: Leaving directory
>>>> > `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
>>>> > You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
>>>> > installed.
>>>> >
>>>> > Is there a way to trick DAHDI to use the installed kernel?
>>>> >
>>>> > Thanks for the help!
>>>> >
>>>> > --
>>>> > -Thermal
>>>> >
>>>>
>>>> What kernel versions do you have installed?
>>>>
>>>> If you are currently running an older kernel but installed a newer
>>>> kernel and sources but havent rebooted to activate the new one yet then
>>>> it may still be trying to locate the source for the older running kernel.
>>>>
>>>>
>>>>
I was able to download the rpm's and install them:
[root at ip-97-74-119-59 src]# rpm -ivh
ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm
warning: ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm: Header V3
DSA signature: NOKEY, key ID a7a1d4b6
Preparing... ########################################### [100%]
package ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686 is
already installed
[root at ip-97-74-119-59 src]# rpm -ivh
ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm
warning: ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm:
Header V3 DSA signature: NOKEY, key ID a7a1d4b6
Preparing... ########################################### [100%]
package ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686
is already installed
[root at ip-97-74-119-59 src]# cd -
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0
[root at ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# make all
make -C linux all
make[1]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-028stab064.7
kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make: *** [all] Error 2
The directories in /usr/src/kernels is:
[root at ip-97-74-119-59 kernels]# ls -l
total 51328
drwxr-xr-x 20 root root 4096 Jul 14 18:04
2.6.18-128.2.1.el5.028stab064.7-i686
drwxr-xr-x 19 root root 4096 Jul 13 20:25 2.6.18-164.11.1.el5-i686
drwxrwxr-x 19 root root 4096 Feb 23 2007 linux-2.6.18.8
I tried to install the kernel from source but couldn't find the exact
kernel, I installed linux-2.6.18.8 as I was the closest.
Both of the directories in /usr/src/kernels/ have the -i686 suffix, is
that the issue?
--
-Thermal
More information about the asterisk-users
mailing list