LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-30-2004, 11:13 PM   #1
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Rep: Reputation: 0
Installing (Compiling?) the new 2.6.1 kernel


Okay, now that I've got some things squared away, I'd like to update my kernel.

I followed the instructions from TheScreenSavers.com, but it only yielded in errors..

Could someone please give me a straight-foward way to do it, and possibly solutions to problems that could arise.. Thanks

(I know this has probably been asked a zillion times, but i can never seem to understand the explanations.)
 
Old 01-31-2004, 12:23 AM   #2
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
Did you check this out already?

http://www.linuxquestions.org/questi...threadid=73436

A sort of how-to from our "Linux - General" forum.

Also...let us know what you don't understand. We'll try to help/translate for you

Peace,
Whitehat
 
Old 01-31-2004, 09:10 AM   #3
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
This isn't fair. I can't even do the first part..

It's not there!! symlinux isn't even in /usr/src/

And even when I skip over all that, I can't do make bzImage or anything.. I get all these errors

Makefile:391: .config: No such file or directory
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/fixdep] Error 127
make: *** [scripts] Error 2

^^
make bzImage

What am I doing wrong?? I can't even get the version that's in .tar.gz format, it's bz2.

Am I just stupid or what?
 
Old 01-31-2004, 09:47 AM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
apperently you did not do make menuconfig...

what kernel are you trying to compile? 2.4 or 2.6?

first thing is to untar the .bz2 file into /usr/src (this is just a conformity, you can untar it anywhere you like really, but programs that need the kernel source automatically look into /usr/src)

you don't need a symlink, that is another conformity (but a good one)

if you need to use the graphical tools, just login as root (shh! i didn't say that , but be careful)
make the symlink if you want by doing ln -s /usr/src/linux-2.x.xx /usr/src/linux

that way, you can do cd /usr/src/linux and then run make menuconfig (to create your .config file) and then run everything else
 
Old 01-31-2004, 10:31 AM   #5
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
Dude. It's fair. I suggest you do a bit of reading on how to compile your kernel. You cant just expect it to be a double click or just typing a line of text.

You need to download whatever kernel you're going to use.

Then, you need to copy it to the /usr/src folder.

After that you need to extract everything in the compressed kernel file you just downloaded at the current location. In doing so it will create a new folder with all the kernel source in there.

For example: if you CD to /usr/src and the do ' ls ' you should see a folder called like linux-2.4.23 or something. When you extract your new kernel you willl see a new folder in there too like linux-2.6.1.

You then need to remove the symlink pointing to the old kernel folder and recreate it pointing to the new one (at least this is what I do, because I don't need to have 3 kernel versions to boot into).

When you did an ' ls ' the folder you see called linux@ is actually not a folder it is a symlink (symbolic link) pointing to another folder. It's like a shortcut in Windows.

To delete the symlink you just type ' rm linux ' while in the /usr/src folder.

To create a new symlink to the new location you need to type:

ln -s /usr/src/linux2-6.1 /usr/src/linux and hit Enter.

I really could go on and on, but if you get to this point you should be going fairly well.

Do a bit of reading, and post in this thread again and let me know if you get to this point. If so, we'll help you more

Peace,
Whitehat
 
Old 01-31-2004, 11:46 AM   #6
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
okay.. Well.. I get all that.. It's done.

but when I go to "make menuconfig" I get this error

HOSTCC scripts/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/fixdep] Error 127
make: *** [scripts/fixdep] Error 2

That pretty much happens with any config command.. What's wrong? Do I have a bad distro?? The kernel source is fine, it download correctly
 
Old 01-31-2004, 01:51 PM   #7
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Hope I'm not being too annoying.. but

*bump*

And I have read up on things.. It's just, that, everywhere I go.. They just explain how to do it but don't offer any troubleshooting help..

Last edited by LilGryphMaster; 01-31-2004 at 02:04 PM.
 
Old 01-31-2004, 05:10 PM   #8
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
ok in exact order and exact syntax, plz post what you did to the point of the error ..
 
Old 01-31-2004, 07:34 PM   #9
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
apperently, you also don't have any compilation tools installed (you probably chose to only do a desktop install for redhat as opposed to a workstation install)

go to the add/remove packages program (or whatever package utility redhat uses) and find the section that has the gcc tools and development tools; install those (make sure you hae your redhat discs handy)

then all should work
 
Old 01-31-2004, 09:45 PM   #10
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Omg.. You are the greatest.. it was so obvious!

Thanks a bunch.. You guys a really a great group of people.. And I will take advantage of your help many more times

Thanks,
Andrew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling installing kernel modules Wordan Linux - Software 3 11-02-2005 07:22 AM
Compiling & Installing Kernel 2.6.0 in Mandrake 9.1 emilsoft Mandriva 23 01-03-2004 03:37 PM
Compiling and Installing Kernel under SuSE 9 bschneider Linux - Newbie 6 12-19-2003 09:46 AM
Compiling and Installing Linux Kernel 2.4.18 kramk2 Linux - Software 4 09-04-2003 07:01 PM
Compiling and installing a new kernel in RedHat7.2 RCarter Linux - Software 10 07-13-2002 09:39 PM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration