PDA

View Full Version : can't open file "init/Kconfig" ?



DirkS
10-14-2005, 02:58 PM
Hi all,

I installed Knoppix 4.02 from CD to HD in Knoppix mode. Now I want to check some config entries and maybe recompile the kernel.

Here's what I did and what happens:
--------------------------------
# cd /usr/src/linux
# make menuconfig
--------------------------------
It starts doing some stuff and then it shows:
--------------------------------
scripts/kconfig/mconf arch/i386/Kconfig
arch/i386/Kconfig:36: can't open file "init/Kconfig"
--------------------------------
???!?

Somehow I suspect this is a stupid question because I could not find a hint about that in the Forum. On the other hand, I have compiled a lot of kernels (although not recently, last time maybe 2 months ago), but this is the first time I encountered this problem.

What can I do?

Any help is greatly appreciated!
Have Fun
Dirk

dbotterill
10-18-2005, 12:16 AM
I had the same problem. I did an "apt-get install linux-source-2.6.12"

I then set my /usr/src/linux symbolic link to "/usr/src/linux-source-2.6.12".

Then I hit another problem.

HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

"cd" to /usr/src/linux/include". Do a "ln -s /usr/src/linux-source-2.6.12/include/asm-i396/ asm".

then in /usr/src/linux, a "make menuconfig" works.