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

标题: make menuconfig 报:scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: cur [打印本页]

作者: 郑全    时间: 2015-2-23 11:37
标题: make menuconfig 报:scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: cur

[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
     ------------------------------------------------------------------------------------------------






    欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2