Re: make config

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Sat, 26 Jul 1997 23:11:16 +0100 (BST)


-----BEGIN PGP SIGNED MESSAGE-----

On Sat, 26 Jul 1997, Rao V. Nagisetty wrote:

> Friends,
> I recently added a cdrom to my PC and my Linux does not recognise it. I
> was told that one has to reconfigure the kernel to include the proper driver
> etc. Also it is said that all you have to do is to go to the directory and
> use the comand 'make config'. When I do that I get the following response:
> rm -f include/asm
> rm: include/asm: is a directory
> make: *** [symlinks] Error 1
> That stopped me cold. Since I did not install Linux myself, I find myself
> in the dark. I am thinking of reinstalling a higher version myself so
> that I might know the process in more detail. Any advice?
> Thanks,
> Rao
>

That would be because you have a linux/include/asm which is a directory,
it was created when someone copied the kernel source without the -d
option. It should be a symlink to the right asm-<arch> directory (on
Intel it should be asm-i386), and is made by make symlinks, which all the
make *config's call on before prompting for the configuration you want.

All you need do is go remove the directories (rm -r), and make will
symlink the right way for you. You may want to go check some other
symlinks are really symlinks (ok, assuming linux libc, and not glibc),
they are /usr/include/linux, which should point to
../src/linux/include/linux; /usr/include/asm, which should be
../src/linux/include/asm (yes, the symlink); and /usr/include/scsi, which
should be ../src/linux/include/scsi.

Oh, and most people keep the kernel source in /usr/src/linux-<kernel ver>,
and symlink /usr/src/linux to that.

Bryn
- --
PGP Pub key http://www.gytha.demon.co.uk/pubkey.asc ID: 1024/30AF2D69
On-line, adj.: FP: FC 4E 41 9E 64 C3 AB 28 A3 5A 57 F8 CC D9 A7 B8
The idea that a human being should always be accessible to a computer.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Probably (spelt

iQCVAwUBM9p2C+saGi8wry1pAQH1QAP/V96jkr0hBv2s1vfgfar1FApE+hvbzyAp
wS8zyZk5jg2pP7i5mmN7QOx+tcZetySTBoMigrEB+gWA4vWI2UO+kgH+Q1f2EyUq
C3YhKOTKHlz3bU22e4SBwAMCEcAetDzF1wQoMY6LO3mM9x5pQ8ZzFbnKdyG5P7QO
fayGAxarmx8=
=NCqk
-----END PGP SIGNATURE-----