LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-26-2002, 04:41 PM   #1
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Rep: Reputation: 15
no kernel in usr/src/Linux


I am trying to install a prog but I get an error stating that there is no kernel in usr/src/Linux

sure enough i look and it does not exhist.

How can i find out where my kernel source is ?
 
Old 10-26-2002, 05:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you need to install it, it will not be on your system by default. install the kernel-source.blah.rpm
 
Old 10-26-2002, 05:28 PM   #3
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Original Poster
Rep: Reputation: 15
huh ?

Not to sound too much as a newbie, eventhough i am. But how can I have linux running without the kernel ?
 
Old 10-26-2002, 05:35 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,609

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
/usr/src contains the kernel source files, not the kernel itself.

--jeremy
 
Old 10-26-2002, 05:45 PM   #5
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Original Poster
Rep: Reputation: 15
Yes but the prog needs someting in usr/src/Linux and thir directory does not exhist.
 
Old 10-26-2002, 06:02 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yes, so you need to install the source files from the kernel-source.something.rpm file in your distro cds. this it NOT the kernel, but the source files that are compiled inthe the kernel found in your kernel.something.rpm.
 
Old 10-26-2002, 06:21 PM   #7
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Original Poster
Rep: Reputation: 15
If I am understanding correctly i actually need to install the kernel and the kernel source files.

Is this correct?
 
Old 10-26-2002, 07:07 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by elite
If I am understanding correctly i actually need to install the kernel and the kernel source files.
Uhm na...

You must already have a (compiled) kernel to be running Linux. This kernel will have been the one that you put on during your installation. What your program is looking for is the source code for the kernel, not the kernel itself.

All you need to install is the kernel source code. Once its there you can either forget about it or build yourself a nice shiney new kernel (when you feel the urge)!

cheers

Jamie...
 
Old 10-26-2002, 09:59 PM   #9
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Original Poster
Rep: Reputation: 15
HOW DO I INSTALL A NEW KERNEL.

sorry about the caps
 
Old 10-28-2002, 03:46 AM   #10
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
The way that I would do it would be to get the source code from your local mirror of ftp.kernel.org then simply unpack the tarball to /usr/src. You'll then want to symlink the linux-2.4.xx dir as linux (ln -s linux-2.4.xx linux) to things that look for /usr/src/linux can find what they expect. You'll also want change to the linux directory and run 'make symlinks' so your assembly dir is linked correctly.

If you are actually going to build a new kernel then have a look at the kernel-HOWTO

cheers

Jamie...
 
Old 10-28-2002, 05:59 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally posted by elite
HOW DO I INSTALL A NEW KERNEL.

sorry about the caps
If you're sorry about using caps, don't use them. we have told you a number of times in this thread that you DO NOT NEED TO INSTALL A NEW KERNEL. *Please* try and pay a little more attention to the help you are given.
 
Old 10-28-2002, 06:10 AM   #12
elite
Member
 
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40

Original Poster
Rep: Reputation: 15
I have figured it out with your help. Thanx
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
updating kernel, no '/usr/src/linux' directory? rubbercash Suse/Novell 2 04-30-2005 02:00 PM
kernel compile - no /usr/src/linux dir epoo Linux - General 2 02-18-2004 10:33 PM
location of kernel /usr/src/linux/include ??????? Lord Lance Mandriva 7 12-13-2003 08:41 AM
kernel recompilation: /usr/src/linux orca Linux - Distributions 5 03-04-2003 09:53 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM


All times are GMT -5. The time now is 05:25 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration