重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5603|回复: 0
打印 上一主题 下一主题

make menuconfig 报:scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: cur

[复制链接]
跳转到指定楼层
楼主
发表于 2015-2-23 11:37:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

[root@dbserver linux]# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
 #include CURSES_LOC
                    ^
compilation terminated.
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

 

遇到该问题,那是由于 ncurses ncurses-devel 没有安装所致,安装后,问题解决:

 

[root@dbserver linux]# yum install ncurses ncurses-devel
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Package ncurses-5.9-13.20130511.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.9-13.20130511.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================
 Package                  Arch              Version                         Repository       Size
==================================================================================================
Installing:
 ncurses-devel            x86_64            5.9-13.20130511.el7             base            713 k

Transaction Summary
==================================================================================================
Install  1 Package

Total download size: 713 k
Installed size: 2.1 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ncurses-devel-5.9-13.20130511.el7.x86_64                                       1/1
  Verifying  : ncurses-devel-5.9-13.20130511.el7.x86_64                                       1/1

Installed:
  ncurses-devel.x86_64 0:5.9-13.20130511.el7                                                     

Complete!

 

 

之后,再次运行 make menuconfig,可以继续:

 

[root@dbserver linux]# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
#
# using defaults found in /boot/config-3.10.0-123.el7.x86_64
#
  | |        ()  Cross-compiler tool prefix                                                 | |
  | |        [ ] Compile also drivers which will not load (NEW)                             | |
  | |        ()  Local version - append to kernel release                                   | |
  | |        [ ] Automatically append version information to the version string             | |
  | |            Kernel compression mode (Gzip)  --->                                       | |
  | |        ((none)) Default hostname                                                      | |
  | |       

  • Support for paging of anonymous memory (swap)                              | |
      | |       
  • System V IPC                                                               | |
      | |       
  • POSIX Message Queues                                                       | |
      | |       
  • Enable process_vm_readv/writev syscalls                                    | |
      | |       
  • open by fhandle syscalls                                                   | |
      | |       
  • uselib syscall (NEW)                                                       | |
      | |       
  • Auditing support                                                           | |
      ...

      ...
     .config - Linux/x86 3.18.7 Kernel Configuration
     ------------------------------------------------------------------------------------------------

  • 分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏 支持支持 反对反对
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

    GMT+8, 2024-11-25 03:19 , Processed in 0.125105 second(s), 20 queries .

    重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

    © 2001-2020

    快速回复 返回顶部 返回列表