Discussion Locked

compiling kernel

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Im new to linux, i found a tutorial website
helping me with compling the kernel so far i
have followed the steps and for the following
messages:

rror for linux-2.4.25.tar.bz2

[root@localhost root]# cd /usr/src/Linux
[root@localhost Linux]# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory
`/usr/src/Linux/scripts/lxdialog'
/bin/sh: line 1: gcc: command not found

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory
`/usr/src/Linux/scripts/lxdialog'
make: *** [menuconfig] Error 2
[root@localhost Linux]#

------------------------------------------------------------
error for linux-2.6.4.tar.bz2
[root@localhost Linux]# 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]#

Any help on how to resolve this or why this is
doing this would be appreciated.
im running fedora core 1 and have tried
installing ncurses but to no avail it has still
not solved the problem.
thanx

3 replies

by will

/bin/sh: line 1: gcc: command not found

It seems, that you have not installed the gcc compiler or that you cannot access ist.
You should try the command as root and install the gcc compiler.

by guenzler

I have done that before, mainly in Debian because I always forget to install the Ncurses. I cant remember if it is a font system or not but it is required for creating the text/gui menu selection. Depending on your distribution that you are running on, you will need to add the ncurses to the system and try making menuconfig afterwards.

by alokchauhan1

have u installed gcc compiler on ur system. u can check it by " rpm -qa gcc " command. this command will show u some output and if this command doesn't show any output then u haven't install gcc package on ur sytem. for kernel compilation u must install this package. after installing gcc u can retry to compile.

This discussion is closed to new replies.