Solved

recomplie kernel redhat linux 7.2

Posted on 2002-07-03
5
363 Views
Last Modified: 2013-11-13
i am trying to recomplie linux kernel of redhat linux 7.2
but when i axecute this line
rpm -i kernel-source-2.4.7-10.rpm

it gives error

gcc >= 2.98* file is needed for kernel-source

how can i solve it
0
Comment
Question by:qatil
5 Comments
 
LVL 4

Accepted Solution

by:
MFCRich earned 50 total points
Comment Utility
Install gcc. It is on your CDs or grab it from a RedHat mirror.
0
 
LVL 1

Author Comment

by:qatil
Comment Utility
i want to recompile kernel of redhat linux 7.2
any one knows how to do that
0
 
LVL 17

Expert Comment

by:psimation
Comment Utility
Do what MFCRich seggested, first rpm -i gccxxxxx.rpm ( will also be on your installation cd's), AFTER that and AFTER you have successfully installed the kernel source, you can begin to re-compile the kernel.
There are several ways to re-compile the kernel, my favourite way is via X, so, while in X, I open a console, cd to /usr/src/linux[xxx] where [xxx] is the version of the kernel you currently have there...
Then, type
make xconfig
This will bring up a nice menu driven config util where you can make all the changes etc. When done, save & exit. Now, from the same console type:
make dep
make clean
make modules
make modules_install
make bzImage

Then, cd arch/i386/boot
cp bzImage /boot
Now edit your /etc/lilo.conf (or /boot/grub/grub.conf)file to inlcude the new kernel ( note, I always keep my old kernel in tact for incase some of the options I have chosen was bull...) so I normally add my new kernel image (bzImage) to the existing stuff in /etc/lilo.conf  (or grub); save and exit. Commit the changes by typing
lilo ( no need if you use grub)
Now ;
reboot and select the new kernel from the menu ( remember to call it something else in your bootloader's conf file.

Voila!


 
0
 

Expert Comment

by:CleanupPing
Comment Utility
qatil:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:TheWeakestLink
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from MFCRich as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now