?
Solved

recomplie kernel redhat linux 7.2

Posted on 2002-07-03
5
Medium Priority
?
381 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 200 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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.
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

771 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