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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-26-2002, 04:41 PM
|
#1
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Rep:
|
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 ?
|
|
|
10-26-2002, 05:01 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you need to install it, it will not be on your system by default. install the kernel-source.blah.rpm
|
|
|
10-26-2002, 05:28 PM
|
#3
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Original Poster
Rep:
|
huh ?
Not to sound too much as a newbie, eventhough i am. But how can I have linux running without the kernel ?
|
|
|
10-26-2002, 05:35 PM
|
#4
|
root
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,613
|
/usr/src contains the kernel source files, not the kernel itself.
--jeremy
|
|
|
10-26-2002, 05:45 PM
|
#5
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Original Poster
Rep:
|
Yes but the prog needs someting in usr/src/Linux and thir directory does not exhist.
|
|
|
10-26-2002, 06:02 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-26-2002, 06:21 PM
|
#7
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Original Poster
Rep:
|
If I am understanding correctly i actually need to install the kernel and the kernel source files.
Is this correct?
|
|
|
10-26-2002, 07:07 PM
|
#8
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
10-26-2002, 09:59 PM
|
#9
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Original Poster
Rep:
|
HOW DO I INSTALL A NEW KERNEL.
sorry about the caps
|
|
|
10-28-2002, 03:46 AM
|
#10
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
10-28-2002, 05:59 AM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-28-2002, 06:10 AM
|
#12
|
Member
Registered: Apr 2002
Distribution: Mandrake 8.2
Posts: 40
Original Poster
Rep:
|
I have figured it out with your help. Thanx
|
|
|
All times are GMT -5. The time now is 04:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|