Solved

recomplie kernel redhat linux 7.2

Posted on 2002-07-03
5
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Accepted Solution

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

Author Comment

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

Expert Comment

by:psimation
ID: 7127956
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
ID: 9088974
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
ID: 9484947
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

688 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