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

General support questions including new installations
Post Reply
yaronkadem
Posts: 1
Joined: 2010/06/30 12:33:02

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

Post by yaronkadem » 2010/06/30 12:45:46

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

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

Post by pschaff » 2010/06/30 12:53:32

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].

Post Reply

Return to “CentOS 4 - General Support”