LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-08-2004, 01:57 PM   #1
sethgeekx86
Member
 
Registered: Jan 2004
Distribution: Slackware 9.1 SUSE 9.0
Posts: 131

Rep: Reputation: 15
compileing 2.6.2


I am reading Kernel Compile Guide for 2.6.0 and am wondering why the link i am makeing is linking to my old 2.4.22 kernal. Does it need to point to your new 2.6.2 kernal.
 
Old 02-08-2004, 02:22 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
by "linking", do you mean trying to link /usr/src/linux-2.6.2/ to /usr/src/linux?

if so, make sure you type it correctly and use the full path name: su, ln -s /usr/src/linux-2.6.2 /usr/src/linux

then do file /usr/src/linux to make sure the symlink was made correctly
 
Old 02-08-2004, 02:46 PM   #3
sethgeekx86
Member
 
Registered: Jan 2004
Distribution: Slackware 9.1 SUSE 9.0
Posts: 131

Original Poster
Rep: Reputation: 15
From /usr/src

rm -f linux
ln -s linux-2.6.0 linux
cd /linux

This is what i mean , Is this unnecessary
 
Old 02-08-2004, 03:41 PM   #4
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
That is just fine

What you are doing when you run the following from the /usr/src folder:

rm -f linux
ln -s linux-2.6.0 linux
cd /linux


...is removing a symlink (symbolic link). with the first command.

...you are then creating a new symlink with the second command.

...then you are changing directories to the linux symlink (which now points to the 2.6.x folder) with the third command.

A symlink is kinda like a "shortcut" in Windows or an "alias" in the MacOS.

Also, if you are doing the 2.6.2 kernel your middle command should look like this:

ln -s linux-2.6.2 linux

Peace,
Whitehat

Last edited by Whitehat; 02-08-2004 at 03:43 PM.
 
Old 02-08-2004, 04:18 PM   #5
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
also, your last command would be 'cd linux', not 'cd /linux'. If you try the latter, it will start in your / directory, and look for a directory labeled 'linux' within there, not the /usr/src/ directory. And make sure that you're logged in as root somehow when you go about making the new symbolic link. And then I would log out of root and configure the kernel as a user, just as a safeguard.
 
Old 02-08-2004, 04:37 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
it is not necessary to link linux to linux-2.6.2 for compiling and installing the kernel if that's what you were wondering about. You can compile and install without doing it. You will want to make the link once you are using the new kernel as your standard kernel and intend to compile other things.
 
  


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
problem compileing new kernel bhupee Linux - Newbie 5 04-17-2009 01:54 AM
Need Help Compileing... SiZaint Linux - Newbie 1 08-30-2003 03:33 AM
KDE compileing Q hulf_slo Linux - Software 0 07-24-2003 05:16 PM
cross compileing (libraries) mtPete Linux - Software 3 06-19-2003 07:19 PM
g++ compileing andox Programming 1 06-18-2003 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration