> hmm,..it seems i don't have a directory /usr/src/linux  or the directory
> /usr/include/asm

refer below

> can you explain to me a different aproach to this,...step by step,..since
> i'm a little new to this...

Here's my /usr/src directory:

drwxr-xr-x    5 root     root         1024 Feb 28 20:12 .
drwxr-xr-x   21 root     root         1024 Jun  8  2000 ..
-rw-r--r--    1 root     root        13245 Aug 26  2000 .config
lrwxrwxrwx    1 root     root           12 Feb 28 20:12 linux -> linux-2.2.18
drwxr-xr-x   15 root     root         2048 Jan  5 19:58 linux-2.2.18
drwxr-xr-x   14 root     root         2048 Feb 23 23:33 linux-2.4.2
drwxr-xr-x    7 root     root         1024 Jul 22  2000 redhat

Note how I have linux-2.2.18 softlinked (with the link named 'linux') This
is what /usr/src/linux is. The rest of it is explained below.

Excerpt from my original reply:

> set the following soft links as follows:
>
> lrwxrwxrwx    1 root     root           28 Apr 21  2000 /usr/include/linux
> -> /usr/src/linux/include/linux
>
> lrwxrwxrwx    1 root     root           26 Apr 21  2000 /usr/include/asm
> -> /usr/src/linux/include/asm
>
When you go to untar the linux kernel source, first put the archive in
/usr/src. Then (in that directory) 'tar xvzf linux-2.4.2.tar.gz' or
whatever version of code you have. You'll get a directory called 'linux'
rename it to linux-2.4.2 (following version 2.4.2 as the example). Set set
the links as follows:

ln -s /usr/src/linux-2.4.2 /usr/src/linux

then continue reading

> ln -s /usr/src/linux/include/linux /usr/include/linux
> ln -s /usr/include/asm /usr/src/linux/include/asm
>
> make sure /usr/src/linux is soft linked to the kernel that you're either
> compiling or that is currently running (in that order.. the latter since
> certain things compile against the kernel headers). So you should have
> it linked to the 2.4.x kernel's source that you're dealing with (since the
> scripts in the kernel source tree reference things as linux and not
> linux-2.4.whatever), etc.

Hope this isn't too confusing :)



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to