Hi, Richard,
You seem to be confused about this kernel thingy. It's rather simple. The
kernel source it's a program source. You copy it into the /usr/src
directory because that's what most people do... It's rather a convention,
it's not a MUST. After you do that, the UNIX gurus have dictated that you
should make a simbolic link (called /usr/src/linux) which points to the
directory newly created. BUT THIS IS NOT A MUST. If you WANT to do it,
just read the man page of ln. This will teach you to make a symbolic link.
Now you can do a 'cd /usr/src/linux' or 'cd /usr/src/linux-2.2.*'. It's
the same thing if you've got a symbolic link. You've changed the directory
in order to compile the program (kernel, in our case). But there's a
little utility (called make), which helps you compile the kernel with just
a few commands. From what you've said, you don't have that utility
(though I'm sure it comes with RedHat too.) You have it on your RedHat CD,
or you can get it from www.gnu.org.
After you install 'make', you can 'cd /usr/src/linux-2.2.*' and do the
following:
'make clean' , 'make dep' , 'make zlilo' , 'make modules' , 'make
modules_install'
With the 2.2.* kernels, you can have a problem with 'make zlilo', but if
you get there, just gimme an email.
Have fun,
bogdan
On Tue, 31 Aug 1999, Richard Spencer wrote:
> I mounted the source CD-ROM and changed to the following directory:
>
> cd /cdrom/Redhat/RPMS
>
> I then did the following:
> rpm -i kernel-headers-2.2.5-15.i386.rpm
> rpm -i kernel-source-2.2.5-15.i386.rpm
> ( I needed to install the headers package first )
>
> I then tried make config, make menuconfig and make xconfig, to which I got
> the following message -- without brackets: [bash: make: command not found]
>
> Advised I would need kernel development rpms loaded, and the
> compiler, I saw rpms in the /cdrom/RedHat/RPMS directory that appeared
> relelvant--because they seemed to be kernel-i386-something or other, so I
> installed those packages as well (...what was I thinking?)
>
> The files I unpacked and their [subsequent messages] were:
> MAKEDEV-2.5-1.noarch.rpm [package MAKEDEV-2.5-1.noarch.rpm is already
> installed]
> kernel-BOOT-2.2.5-15.i386.rpm [no complaint]
> kernel-smp-2.2.5-15.i386.rpm [no complaint]
>
>
> Pleased with trying to install these packages and not getting major
> complaints, I tried the 3 makes again, but the same message still haunts me:
> bash: make: command not found
>
> I did notice that my /usr/src/linux-2.2.15 directory had contents with today's
> date, and I'm sure I had all the same stuff there before, with a previous
> date. So whatever I've done today so far, I had probably done before.
>
> It kind of bothers me though, that I don't have a directory for
> /usr/src/linux -- just the
> link.
>
> I don't suppose I'm trying to run the bash command 'make' from the wrong
> directory. My bash file is in /bin so that should not make a
> difference. Still, there seems to be trouble with bash, doesn't there?
>
> Does anyone have an idea about where to go from here?
>