LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   no kernel in usr/src/Linux (https://www.linuxquestions.org/questions/linux-general-1/no-kernel-in-usr-src-linux-33849/)

elite 10-26-2002 03:41 PM

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 ?

acid_kewpie 10-26-2002 04:01 PM

you need to install it, it will not be on your system by default. install the kernel-source.blah.rpm

elite 10-26-2002 04:28 PM

huh ?
 
Not to sound too much as a newbie, eventhough i am. But how can I have linux running without the kernel ?

jeremy 10-26-2002 04:35 PM

/usr/src contains the kernel source files, not the kernel itself.

--jeremy

elite 10-26-2002 04:45 PM

Yes but the prog needs someting in usr/src/Linux and thir directory does not exhist.

acid_kewpie 10-26-2002 05:02 PM

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.

elite 10-26-2002 05:21 PM

If I am understanding correctly i actually need to install the kernel and the kernel source files.

Is this correct?

jharris 10-26-2002 06:07 PM

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...

elite 10-26-2002 08:59 PM

HOW DO I INSTALL A NEW KERNEL.

sorry about the caps

jharris 10-28-2002 02:46 AM

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...

acid_kewpie 10-28-2002 04:59 AM

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.

elite 10-28-2002 05:10 AM

I have figured it out with your help. Thanx


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