PDA

View Full Version : CentOS Images - Please install kernel-headers


Benjie
21st May 2008, 16:29
For anyone trying to install a pecl module (an extension for PHP), you'll need gcc. For gcc you need glibc-headers, and for that you need kernel-headers, which is blocked on flexiscale servers (for good reason - you wouldn't want to accidentally update your flexiscale kernel!).

To solve this, I removed the exclude=kernel* line from /etc/yum.conf, and then ran

yum install kernel-headers-2.6.18-53.1.14.el5

(you can tell what version you need by running "uname -r") and then I replaced the exclude line in yum.conf (to make sure I didn't accidentally update the kernel in the future!); however it took me a few valuable minutes to figure out, so it would be nice if the flexiscale servers had the relevant kernel-headers installed by default in the golden images to allow easy installation of gcc and other such applications.

Cheers,

Benjie.

georgema
21st July 2008, 20:45
Thanks for the info. Saved quite a bit of time although the package server has an updated Kernel and associated kernel-headers so I'll have to trawl and see if I can find the old package. Either that or update the kernel...!

George :)

georgema
21st July 2008, 21:16
Found the headers at

http://altruistic.lbl.gov/mirrors/centos/5/updates/x86_64/RPMS/

These are for a 64 bit server. Downloaded the rpm

http://altruistic.lbl.gov/mirrors/centos/5/updates/x86_64/RPMS/kernel-headers-2.6.18-53.1.14.el5.x86_64.rpm

installed using rpm -Uvh kernel-headers-2.6.18-53.1.14.el5.x86_64.rpm

Then installed the development tools using

yum groupinstall "Development Tools"

Finally went back and updated /etc/yum.conf to replace the kernel* exclude.

Like you say it would be good if these were installed by default or the issue referred to in some of the image documentation.

George