Click to See Complete Forum and Search --> : Where'd /usr/src/linux go?
gwhitney
07-02-2001, 12:37 PM
I'm working on learning this still but here's an easy one hopefully.
I just installed RH 7.0 on a laptop and have one problem. I don't have a /usr/src/linux. The linux directory is missing. I need to recompile the kernel. I can't see where Redhat put that information anywhere else. How do I get it? Thanks.
teeitup
07-02-2001, 12:53 PM
/usr/src/linux/ is not a real directory, simply a symbolic link to the source code directory.
Are there any other directories in /usr/src/?
Something like kernel-source-2.4.5
If so you need to create a link for ease of use:
cd /usr/src
ln -s /usr/src/kernel-source-2.X.X linux
do an ls and verify a linux@ file exists.
If the kernel-source directory is not there you need to get the source code.
tecknophreak
07-02-2001, 01:00 PM
If you don't have the right files, get kernel-source-2.4.5.rpm from ftp.redhat.com and install that. I just did the same thing, it didn't get installed when I put RH 7.1 in. Thus my previous posts.
[ 02 July 2001: Message edited by: tecknophreak ]
Craig McPherson
07-02-2001, 07:09 PM
You really should get your kernel sources directly from kernel.org. Just grab the tarball from there and unzip it. I've never seen the purpose of kernel source packages.