主题 : make 问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 1084
精华: 0
发帖: 40
金钱: 345 两
威望: 41 点
综合积分: 80 分
注册时间: 2008-07-16
最后登录: 2010-11-17
楼主  发表于: 2008-07-29 16:31

 make 问题


[root@ayyuan vivi]# make menuconfig
make -C scripts/lxdialog all
make[1]: Entering directory `/opt/FriendlyARM/QQ2440/vivi/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 `/opt/FriendlyARM/QQ2440/vivi/scripts/lxdialog'
make: *** [menuconfig] Error 2

请问这是什么问题,怎么解决?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-07-29 17:48
引用楼主blackswan于2008-07-29 16:31发表的 make 问题 :

[root@ayyuan vivi]# make menuconfig
make -C scripts/lxdialog all
make[1]: Entering directory `/opt/FriendlyARM/QQ2440/vivi/scripts/lxdialog'
/bin/sh: line 1: gcc: command not found
.......

1. 你需要在你的PC Linux上按装gcc
2. 你需要在你的PC Linux上安装ncurses这个lib以及它的头文件
"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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-07-29 17:50
引用楼主blackswan于2008-07-29 16:31发表的 make 问题 :

[root@ayyuan vivi]# make menuconfig
make -C scripts/lxdialog all
make[1]: Entering directory `/opt/FriendlyARM/QQ2440/vivi/scripts/lxdialog'
/bin/sh: line 1: gcc: command not found
.......

在执行menuconfig时,需要编译生成一个基于ncurse的图形界面,这需要你的PC上有编译环境,即编译器(gcc)和相应的库(libncurse.so),头文件
"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: 1084
精华: 0
发帖: 40
金钱: 345 两
威望: 41 点
综合积分: 80 分
注册时间: 2008-07-16
最后登录: 2010-11-17
3楼  发表于: 2008-07-29 19:12
去试一试,谢谢!
级别: 新手上路
UID: 1084
精华: 0
发帖: 40
金钱: 345 两
威望: 41 点
综合积分: 80 分
注册时间: 2008-07-16
最后登录: 2010-11-17
4楼  发表于: 2008-07-29 19:43
原来是装系统时gcc没有安装,呵呵