Problem in kernel compilation
hi everybody,
I am new to linux and trying to compile linux kernel 2.6.9 & other 2.6 series.. as stated in many procedures i downloaded kernel source code ( tsr.bz2) file.. then when i execute make menuconfig i get following [root@localhost linux-2.6.9]# make menuconfig HOSTCC scripts/fixdep /bin/sh: line 1: gcc: command not found make[1]: *** [scripts/fixdep] Error 127 make: *** [scripts/fixdep] Error 2 [root@localhost linux-2.6.9]# I tried it with fedora core 1 and core 7 .. but no change.. also i get same error for other kernel versions.. plz help me to get rid of this error.. thank you |
Quote:
----------------- Steve Stites |
Quote:
i wl try to install it and then wl compile again thank you |
Install GCC
Goto this link
http://unclean.org/howto/gcchowto.html will explain how to install gcc and where to get rpm. |
Quote:
Install it and take a look at this page: "Compiling yourself a new Kernel (with Reiser4 support)." http://linuxhelp.150m.com/installs/compile-kernel.htm |
Quote:
In the kernel compilation i execute make modules.. it executes successfully.. then i execute make modules_install to install the modules.. it gives me following error- INSTALL sound/synth/emux/snd-emux-synth.ko INSTALL sound/synth/snd-util-mem.ko INSTALL sound/usb/snd-usb-audio.ko INSTALL sound/usb/snd-usb-lib.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.10; fi /bin/sh: line 1: 11965 Terminated /sbin/depmod -ae -F System.map 2.6.10 make: *** [_modinst_post] Error 143 plz help me to overcome this problem.. |
Quote:
hi everybody, Plz guide me for the problem i mentioned above.. |
When you compiled the kernel the System.map should have been created in the top directory.
It doesn't seem to be there. Check and see. |
Quote:
Problem doesnt occur while executing make modules. then what may be the problem? |
Quote:
|
Quote:
|
Quote:
|
Quote:
/sbin/depmod -ae -F System.map 2.6.10 and see what happens. |
Quote:
it gives - no such file or directory... does that mean that system.map for that kernel is not created??..if so then what is going wrong? and i did same with 2.6.20.2 kernel m getting same error.. |
It means that your system is not finding the program depmod. Enter the command (as root)
which depmod that should tell you where it is, if you have it. OR perhaps it is not finding the System.map You are in the top directory of the kernel source aren't you? If not enter the full path to System.map |
All times are GMT -5. The time now is 06:27 AM. |