Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! amit4g's Avatar
    Join Date
    Feb 2007

    HELP::Kernel compilation:ncurses issue


    Though this has nothing to do with linux kernel as such,but posting here as someone might have faced the similar issue during kernel compilation.

    While trying to build the linux kernel -,
    i get the following error message during initial phase(make menuconfig) :
    scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory <===
    In file included from scripts/kconfig/lxdialog/checklist.c:24:

    It seems that something is wrong with 'ncurses'
    <snip from linux->
    #include CURSES_LOC
    <snip from linux->

    <snip from linux->
    # Where is ncurses.h?
    if [ -f /usr/include/ncurses/ncurses.h ]; then
    echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
    elif [ -f /usr/include/ncurses/curses.h ]; then
    echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
    elif [ -f /usr/include/ncurses.h ]; then
    echo '-DCURSES_LOC="<ncurses.h>"'
    echo '-DCURSES_LOC="<curses.h>"'

    <snip from linux->

    After looking into the /usr/include directory , i got to know that the header ncurses.h is absent

    On the same machine,i could see an rpm by the name "ncurses-5.5-24.20060715"
    [amit@localhost include]$ rpm -qa|grep -i ncurses

    [amit@localhost include]$ rpm -qi ncurses-5.5-24.20060715
    Name : ncurses Relocations: (not relocatable)
    Version : 5.5 Vendor: Red Hat, Inc.
    Release : 24.20060715 Build Date: Thu 31 Aug 2006 05:41:08 PM IST
    Install Date: Thu 07 Feb 2008 08:30:07 PM IST Build Host:
    Group : System Environment/Libraries Source RPM: ncurses-5.5-24.20060715.src.rpm
    Size : 2829883 License: distributable
    Signature : DSA/SHA1, Thu 18 Jan 2007 09:40:59 PM IST, Key ID 5326810137017186
    Packager : Red Hat, Inc. <>
    URL : NCURSES - New Curses
    Summary : A terminal handling library
    Description :
    The curses library routines are a terminal-independent method of
    updating character screens with reasonable optimization. The ncurses
    (new curses) library is a freely distributable replacement for the
    discontinued 4.4 BSD classic curses library.

    i tried to install the latest ncurses(version 5.6) downloaded from the site:, but this also failed during the 'make' step

    Now to configure the kernel, i can go through the .config file and edit the parameters there,
    but this would be really a tedious job(though heard that most of the programmers prefer this), as i haven't done it before,hence please guide me here.


  2. #2
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Duplicate Threads/Posts are not allowed. Its against Forum Rules. Please continue here only.
    Thread Locked.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts