免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5337 | 回复: 10
打印 上一主题 下一主题

求解 make menuconfig 错误 (加急!!) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-16 10:18 |只看该作者 |倒序浏览
跪求 解决方法
$ make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2

说是提示没有安装 ncurses-devel

但我确实已经安装了

$ dpkg -l | grep ncurses
ii  libncurses-ruby                      1.1-2                                                 ruby Extension for the ncurses C library
ii  libncurses-ruby1.8                   1.1-2                                                 ruby Extension for the ncurses C library
ii  libncurses-ruby1.9                   1.1-2                                                 ruby Extension for the ncurses C library
ii  libncurses4                          4.2-10.1                                              Shared libraries for terminal handling
ii  libncurses5                          5.7+20090803-2ubuntu3                                 shared libraries for terminal handling
ii  libncurses5-dbg                      5.7+20090803-2ubuntu3                                 debugging/profiling libraries for ncurses
ii  libncurses5-dev                      5.7+20090803-2ubuntu3                                 developer's libraries and docs for ncurses
ii  libncursesw5                         5.7+20090803-2ubuntu3                                 shared libraries for terminal handling (wide
ii  libncursesw5-dbg                     5.7+20090803-2ubuntu3                                 debugging/profiling libraries for ncurses
ii  libncursesw5-dev                     5.7+20090803-2ubuntu3                                 developer's libraries for ncursesw
ii  mtr-tiny                             0.75-2                                                Full screen ncurses traceroute tool
ii  ncurses-base                         5.7+20090803-2ubuntu3                                 basic terminal type definitions
ii  ncurses-bin                          5.7+20090803-2ubuntu3                                 terminal-related programs and man pages
ii  ncurses-term                         5.7+20090803-2ubuntu3                                 additional terminal type definitions


不想 重新安装系统  求解

论坛徽章:
0
2 [报告]
发表于 2010-08-16 10:24 |只看该作者
本帖最后由 好看的附件 于 2010-08-16 10:33 编辑

回复 1# heyj6969

没看清~~
LZ已经安装了ncurses库?是不是版本问题?

论坛徽章:
0
3 [报告]
发表于 2010-08-16 10:26 |只看该作者
回复 1# heyj6969


    你是要编译内核是吧?

论坛徽章:
0
4 [报告]
发表于 2010-08-16 10:53 |只看该作者
回复 2# 好看的附件


    已经 安装了  
我的是  ubuntu 10.4   这个对 ncurses 版本 有特定要求的么

论坛徽章:
0
5 [报告]
发表于 2010-08-16 10:54 |只看该作者
回复 3# iori809


    是的  现在 编译不过去 急死人了    抓狂ing

论坛徽章:
0
6 [报告]
发表于 2010-08-16 11:03 |只看该作者
回复 1# heyj6969


    try:
     libncurses-dev

论坛徽章:
0
7 [报告]
发表于 2010-08-16 11:07 |只看该作者
回复 6# 好看的附件


    用Make编辑linux内核
1,tar -xvf linux-2.6.18.3.tar
tar -jxvf linux-2.6.10.tar.bz2
2,mv linux-2.6.18.3 /usr/src
3,查看现在使用的版本信息
[root@localhost linux-2.6.18.3]# uname -a
Linux localhost.localdomain 2.6.9-42.EL #1 Wed Jul 12 23:16:43 EDT 2006 i686 i686 i386 GNU/Linux
4,[root@localhost tapeback]# rpm -aq | grep gcc
libgcc-3.4.5-2
compat-libgcc-296-2.96-132.7.2
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
[root@localhost tapeback]# rpm -ivh gcc-3.4.5-2.i386.rpm
warning: gcc-3.4.5-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]


5,
[root@localhost linux1]# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
[root@localhost linux1]# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:32:20: curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:130: error: syntax error before "use_colors"
scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of `use_colors'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:131: error: syntax error before "use_shadow"
scripts/lxdialog/dialog.h:131: warning: type defaults to `int' in declaration of `use_shadow'
scripts/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:133: error: syntax error before "attributes"
scripts/lxdialog/dialog.h:133: warning: type defaults to `int' in declaration of `attributes'
scripts/lxdialog/dialog.h:133: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype


错误原因,缺少软件

6,rpm -ivh ncurses-devel-5.4-13.i386.rpm

make menuconfig
make clean
make bzImage
make modules
此时要注意的就是如果是原的内核从新编译的话,要把lib/modules/里的名字修改一下
make modules_install
mkinitrd /boot/initrd-2.6.26.img  2.6.26
然后修改grub/menu.lst文件,特别注意的是如果是scsi硬盘,必须创建initrd文件
设置好后,就可以在grub启动时选择要加载的核心文件了



这个是我很早以前编译内核时候,出现的问题及解决方案~希望能帮到你
那时候我也和你一样~理解那种心情,这个玩意儿不难但非常耽误时间~

论坛徽章:
0
8 [报告]
发表于 2010-08-16 14:29 |只看该作者
回复 6# 好看的附件


$ sudo apt-get install libncurses-dev
[sudo] password for skywalker:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
注意,选取 libncurses5-dev 而非 libncurses-dev
libncurses5-dev 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级

不行哦

论坛徽章:
0
9 [报告]
发表于 2010-08-16 14:44 |只看该作者
回复 8# heyj6969


    那你试试:
  sudo apt-get install libncurses*

论坛徽章:
0
10 [报告]
发表于 2010-08-16 14:49 |只看该作者
换源
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP