Page 1 of 1

Upgrading a very old kernel (2.6.9-42.EL)

Posted: 2010/06/30 12:45:46
by yaronkadem
Hi all and please help,

I have a CentOS 4.4 server running a very old kernel which I would like to upgrade.

I downloaded the latest stable kernel from kernel.org (2.6.34) and did the following steps:
1. untar the linux-2.6.34.tar.bz2 file into a directory.
2. cd linux-2.6.34
3. running this command 'make old config'

and got this error as a results:
[root@TEST linux-2.6.34]# make old config
make[1]: gcc: Command not found
make[1]: gcc: Command not found
HOSTCC scripts/basic/fixdep
/bin/sh: gcc: command not found
make[3]: *** [scripts/basic/fixdep] Error 127
make[2]: *** [scripts_basic] Error 2
make[1]: *** [include/config/auto.conf] Error 2
make: *** [old] Error 2


Please help.

thank you

Upgrading a very old kernel (2.6.9-42.EL)

Posted: 2010/06/30 12:53:32
by pschaff
Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

Updating to [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS4.8]CentOS 4.8[/url] and the latest stable distro kernel via yum is the recommended approach. Updating to a generic kernel via a [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Install[/url] is [b]highly[/b] discouraged, unless you have a compelling reason to do so, and the requisite knowledge to make it work and deal with the consequences. The simple facts that you are attempting to build as root, and don't have gcc installed, indicate a lack of the required knowledge. If you [b]need[/b] a custom kernel see [url=http://wiki.centos.org/HowTos/Custom_Kernel]I Need to Build a Custom Kernel[/url].