主题 : 'make menuconfig' requires the ncurses libraries(was 请教linux里的make menuconfig命令) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 63245
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2012-02-16
最后登录: 2012-11-22
楼主  发表于: 2012-04-26 14:34

 'make menuconfig' requires the ncurses libraries(was 请教linux里的make menuconfig命令)

大家好,我装的是redhat 2.6企业版。
1. 按照国嵌的教程,我做到内核编译的步骤。
运行make clean之后,运行make menuconfig,可了运行make menuconfig命令之后,不能正常运行,系统出现
'make menuconfig' requires the ncurses libraries的字样。
2. 查了网上资料,说我的ncurses未安装
按照网上的方法,输入sudo apt-get install libncurses5-dev 命令
3. 又说我没安装apt-get
再查,http://www.cnblogs.com/hbycool/articles/1672888.html 说了解决这个问题的方法,可按照这个网页的方法做,在它提供的网址上下载来的文件找不到rpm -ivh apt.i386.rpm,
安装这几个文件的时候,出现
error: Failed dependencies:
        libreadline.so.4 is needed by apt-0.5.5cnc6-fr1.i386
        librpm-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
        librpmdb-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
        librpmio-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
        libstdc++.so.5 is needed by apt-0.5.5cnc6-fr1.i386
        libstdc++.so.5(CXXABI_1.2) is needed by apt-0.5.5cnc6-fr1.i386
        libstdc++.so.5(GLIBCPP_3.2) is needed by apt-0.5.5cnc6-fr1.i386
        libstdc++.so.5(GLIBCPP_3.2.2) is needed by apt-0.5.5cnc6-fr1.i386
这几个文件的怎么找都找不到了,请教各位,究竟怎么做才能正常运行make menuconfig呢?
[ 此帖被kasim在2012-04-27 12:16重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-04-26 16:43
按照网上的方法,输入sudo apt-get install libncurses5-dev 命令

这是适用Debian或者Ubuntu上的做法。在Redhat 企业版(RHEL)上应该有和libncureses5-dev相等同的软件包。
"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: 63245
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2012-02-16
最后登录: 2012-11-22
2楼  发表于: 2012-04-26 22:09

 回 1楼(kasim) 的帖子

视频那儿谢老师直接运行make menuconfig就可以出那个图形界面了,不知道要装些神马东东才能运行那个命令
这是视频里的截图





但是我就比较悲催,运行这个命令时只得到这样的结果


如果不能正常运行那个命令的话,是不是就不能定制和编译内核了啊?
[ 此帖被dandanyu1在2012-04-27 12:00重新编辑 ]
级别: 新手上路
UID: 63245
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2012-02-16
最后登录: 2012-11-22
3楼  发表于: 2012-04-27 12:01
引用第1楼kasim于2012-04-26 16:43发表的  :

这是适用Debian或者Ubuntu上的做法。在Redhat 企业版(RHEL)上应该有和libncureses5-dev相等同的软件包。

bz,2楼补充了我做的过程中的截图,有什么解决方法啊?谢谢啊~~~
级别: 新手上路
UID: 63245
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2012-02-16
最后登录: 2012-11-22
4楼  发表于: 2012-04-27 12:07

 回 3楼(dandanyu1) 的帖子

oh my god,解决了,在redhat的安装光盘上就有ncourse的2个安装包,把它们安装了就能用了
网上那些方法说得那么复杂,哎。。。昨天搞了我一天
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-04-27 12:14

 回 3楼(dandanyu1) 的帖子

1. "make menuconfig"并不是唯一配置内核的方法,还有"make config", "make xconfig"和“make gconfig”等等,具体信息看"make help"的输出;
2. 如果你希望在RHEL上用menuconfig, 查RHEL的用户手册,如何安装一个提供的ncurses libraries及其开发用的头文件的软件包。
"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."