主题 : 请教 linux内核配置问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 1111
精华: 0
发帖: 10
金钱: 100 两
威望: 10 点
综合积分: 20 分
注册时间: 2008-07-21
最后登录: 2008-09-16
楼主  发表于: 2008-09-16 16:06

 请教 linux内核配置问题

我按照手册的说明,输入了 make menuconfig  结果提示错误:
[root@localhost kernel-2.6.13]# 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
不知道是哪的问题?请版主或高手给予解答,谢谢!
级别: 新手上路
UID: 1111
精华: 0
发帖: 10
金钱: 100 两
威望: 10 点
综合积分: 20 分
注册时间: 2008-07-21
最后登录: 2008-09-16
1楼  发表于: 2008-09-16 16:21
好像是gcc的库不全,不知道还少哪个?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-09-16 17:01
/bin/sh: line 1: gcc: command not found

根本就没有装gcc
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 1111
精华: 0
发帖: 10
金钱: 100 两
威望: 10 点
综合积分: 20 分
注册时间: 2008-07-21
最后登录: 2008-09-16
3楼  发表于: 2008-09-16 17:26
我输入:arm-linux-gcc -v显示的内容和datasheet上说的一样啊,就说明我的交叉编译环境已经装好了,是不是还缺少什么东西啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-09-16 21:15
menuconfig是不会用到交叉编译的,这里说的是你PC Linux上没有装gcc,至于怎么装,要看你PC上Linux发行版(debian?redhat?)的说明
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."