can't install kernel-devel

Hello,

I'm trying to install Asterisk (Libpri, DAHDI…) on my linode with CentOS 5; the problem is that one of the steps before compiling DAHDI is to install the following:

yum install kernel-devel-`uname -r`

But it gets an error that says:

]# make                                                                    
make -C linux all                                                                                   
make[1]: Entering directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux'                    
make -C drivers/dahdi/firmware firmware-loaders                                                     
make[2]: Entering directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux/drivers/dahdi/firmwa
re'                                                                                                 
make[2]: Leaving directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux/drivers/dahdi/firmwar
e'                                                                                                  
[b]You do not appear to have the sources for the 3.0.0-linode35 kernel installed.        [/b]              
make[1]: *** [modules] Error 1                                                                      
make[1]: Leaving directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux'                     
make: *** [all] Error 2          

I've already installed the kernel-devel but still not work.

Hope you can help

Best Regards

8 Replies

If you absolutely need DAHDI for your situation, you'll need to get the kernel source from kernel.org and the config from /proc/config.gz, since it needs to compile the kernel module against it. You will need to do this any time Linode's kernel version changes. Alternatively, you can use your distribution's kernel and party like it is 2006 again.

@hoopycat:

If you absolutely need DAHDI for your situation, you'll need to get the kernel source from kernel.org and the config from /proc/config.gz, since it needs to compile the kernel module against it. You will need to do this any time Linode's kernel version changes. Alternatively, you can use your distribution's kernel and party like it is 2006 again.

Hi, i followed the instructions here url=http://library.linode.com/linode-platfo … grub-howto">http://library.linode.com/linode-platform/custom-instances/pv-grub-howto with the following commands:

wget -O selinux.sh http://library.linode.com/assets/542-centos5-native-kernel-selinux-enforcing.sh
chmod +x selinux.sh
./selinux.sh

I made the changes on "Xenify Distro" and "Automount devtmpfs" options to "No" and also the Kernel to pv-grub-x86_32; i reboot from the Dashboard, and this is what i'm getting:

Booting 'CentOS (2.6.18-194.26.1.el5xen)'                                                         

root (hd0)                                                                                          
 Filesystem type is ext2fs, using whole disk                                                        
kernel /boot/vmlinuz-2.6.18-194.26.1.el5xen root=/dev/xvda                                          

Error 15: File not found                                                                            

Press any key to continue...                                                                        

Note: I need DAHDI because of dahdi_dummy to conference (meetme)

Hope you can help!

Does /boot/vmlinuz-2.6.18-194.26.1.el5xen exist? Does anything /boot/vmlinuz-* exist?

@hoopycat:

Does /boot/vmlinuz-2.6.18-194.26.1.el5xen exist? Does anything /boot/vmlinuz-* exist?

so…what do i have to do now? i can't boot the server :(

Change the Kernel setting in the Configuration Profile back to the way it was (usually Latest 2.6 Paravirt), and it should boot up again.

hello,

I would suggest that the linode instructions for pv_grub for centos are not really that great. get that script and read it and then do it manually (parts of it are busted)

bottom line is make sure you have entry like this in your (properly linked) grub.conf (note make sure this matches the kernel version, i.e. look in /boot for the file)

title CentOS (2.6.18-238.19.1.el5xen)

root (hd0)

kernel /boot/vmlinuz-2.6.18-238.19.1.el5xen root=/dev/xvda

initrd /boot/initrd-2.6.18-238.19.1.el5xen.img

then make sure to select pv_grub(32)/(64) (which ever base you started from) from the kernel drop down on the linode manager. Set xenify distro to NO and set Automount devtmpfs to NO.

reboot your linode and watch LISH also make sure to add xvc0 to /etc/securetty if you want to login via LISH

If you have this done and the kernel and kernel-devel package installed you can compile dahdi.

THAT BEING SAID. I would suggest you consider installing asterisk18 as asterisk16 is quickly approaching EOL and asterisk18 is the current Long Term Release (https://wiki.asterisk.org/wiki/display/ … k+Versions">https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions)

I assume you want dahdi for conference bridges however that is no longer needed for asterisk18. and since there is no hardware at all to install on linode you dont need to dahdi, just installed asterisk from the digium repo via yum and it will keep your life very simple.

And if you care asterisk18 fully works 100% with freepbx 2.9.

yum -y update

yum -y install kernel-xen

you need to do this FIRST

http://www.asterisk.org/downloads/yum

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct