LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-17-2008, 01:13 PM   #1
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Rep: Reputation: 15
invisible directory /usr/src/linux-2.6.21...


Hi Sir,
I have installed Fedora-7 on my PC.
I have to do compilation of kernel. But the
directory linux-2.6.21.... is not there in
the /usr/src/
PLZ reply .........
 
Old 01-17-2008, 01:28 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The directory of kernel sources might not be there unless you have installed the kernel sources package. It is available from the standard reposities (if you have upgraded your kernel from an internet reposity), or in the installation cd (note: in Fedora's case it's probably a src/srpm disk, not one of the binary ones you used to install) - newer sources are in the internet reposities. Or you could fetch the sources from kernel.org - just download the (full) source package and extract it to /usr/src/.

It's common that /usr/src/ has linux-version directories which contain source code for the given versions (may be more sources than just one version), and a symlink called just 'linux' (/usr/src/linux) that points to the (usually newest) wanted source directory.

So get a kernel source package. They are available at rpm.pbone.net too if I'm right. Install that, and the sources should be there..

NOTE: after getting the sources there, before making any further questions or going about configuring or compiling, read at least the README (and INSTALL if it exists) file that is included in the source directory. It contains information about how you use the sources (might be version-dependent), and more information is available in the docs directory. That file tells, among other things, how to compile the kernel - Fedora might offer another way, for example it allows you probably to build your own .rpm from the compiled sources for easy upgrade, but still, read the README text file.

Last edited by b0uncer; 01-17-2008 at 01:30 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
updating kernel, no '/usr/src/linux' directory? rubbercash SUSE / openSUSE 2 04-30-2005 01:00 PM
cd /usr/src cd linux no such file or directory Peacedog Slackware 2 12-31-2003 03:20 PM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 08:05 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:06 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