在RedHat AS5.0下安装buildroot的探索过程

昨天,了解了buildroot的相关信息后,由于要使用到,于是进行了安装,但是老出现以下的错误提示。
[root@localhost buildroot]# make menuconfig
which: no glib-genmarshal in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/lxy/bin)
make CC="/usr/bin/gcc" -C package/config conf mconf
make[1]: Entering directory `/home/lxy/tools/buildroot/package/config'
/usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE  -g -O2  -c lxdialog/checklist.c -o lxdialog/checklist.o
在包含自 lxdialog/checklist.c:24 的文件中:
lxdialog/dialog.h:32:20: 错误:curses.h:没有那个文件或目录
In file included from lxdialog/checklist.c:24:
lxdialog/dialog.h:97: 错误:expected specifier-qualifier-list before ‘chtype’
lxdialog/dialog.h:187: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:194: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:196: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:197: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:198: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:199: 错误:expected ‘)’ before ‘*’ token
lxdialog/dialog.h:201: 错误:expected ‘)’ before ‘*’ token
lxdialog/checklist.c:31: 错误:expected ‘)’ before ‘*’ token
lxdialog/checklist.c:59: 错误:expected ‘)’ before ‘*’ token
lxdialog/checklist.c:95: 错误:expected ‘)’ before ‘*’ token
lxdialog/checklist.c: 在函数 ‘dialog_checklist’ 中:
lxdialog/checklist.c:116: 错误:‘WINDOW’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:116: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
lxdialog/checklist.c:116: 错误:所在的函数内只报告一次。)
lxdialog/checklist.c:116: 错误:‘dialog’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:116: 错误:‘list’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:129: 错误:‘stdscr’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:130: 错误:‘KEY_MAX’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:137: 错误:‘COLS’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:138: 错误:‘LINES’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:143: 错误:‘TRUE’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:146: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:146: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:147: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:151: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:156: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:171: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:171: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
lxdialog/checklist.c:210: 错误:‘KEY_UP’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:210: 错误:‘KEY_DOWN’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:220: 错误:‘FALSE’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:297: 错误:‘KEY_LEFT’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:298: 错误:‘KEY_RIGHT’ 未声明 (在此函数内第一次使用)
lxdialog/checklist.c:312: 错误:‘KEY_RESIZE’ 未声明 (在此函数内第一次使用)
make[1]: *** [lxdialog/checklist.o] 错误 1
make[1]: Leaving directory `/home/lxy/tools/buildroot/package/config'
make: *** [package/config/mconf] 错误 2

在安装盘中无法搜索到glib-genmarshal,从而问题没法解决。
今天要编译内核,也出现了类似错误:
  HOSTLD  scripts/kconfig/mconf
/usr/bin/ld: cannot find -lncurses
collect2: ld 返回 1

>> Unable to find the Ncurses libraries.
>>
>> You must install ncurses-devel in order
>> to use 'make menuconfig'

make[2]: *** [scripts/lxdialog/ncurses] 错误 1
make[1]: *** [menuconfig] 错误 2
make: *** [menuconfig] 错误 2
于是,自己在安装盘中搜索了一番,重新安装了一下两个文件:
ncurses-devel-5.5-24.20060715.i386.rpm
ncurses-5.5-24.20060715.i386
就OK啦。

重新运行命令[root@localhost buildroot]# make menuconfig,之后,弹出了配置界面:


总结,相关的库没有找准和安装好。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值