Re: make config

Bryn Paul Arnold Jones (
Sat, 26 Jul 1997 23:11:16 +0100 (BST)


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.

- --
PGP Pub key 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.

Version: 2.6.3i
Charset: noconv
Comment: Probably (spelt