当前位置: 技术问答>linux和unix
求助:关于Linux内核2.6.12的编译
来源: 互联网 发布时间:2016-12-26
本文导语: 输入make之后,报错,内容如下: [root@localhost linux-2.6.12]# make config HOSTCC scripts/basic/fixdep /bin/sh: line 1: gcc: command not found make[1]: *** [scripts/basic/fixdep] Error 127 make: *** [scripts_basic] Error 2 [root@localhost linux-...
输入make之后,报错,内容如下:
[root@localhost linux-2.6.12]# make config
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make xconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make menuconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make oldconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]#
,求大家看看到底是怎么了?是目录进入的不对吗
[root@localhost linux-2.6.12]# make config
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make xconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make menuconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]# make oldconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.12]#
,求大家看看到底是怎么了?是目录进入的不对吗
|
which gcc看看有没装上gcc
如果确认是有装上的话,看看你的PATH是否配置正确
错误提示是gcc的问题。。。lz在gcc上找原因
如果确认是有装上的话,看看你的PATH是否配置正确
错误提示是gcc的问题。。。lz在gcc上找原因