I was trying to configure the kernel and I got the following error. Can somebody please tell me what I should do?

root@nitr-desktop:/usr/src/linux# 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] Error 1
make: *** [menuconfig] Error 2
  • 7
    Try installing first libncurses5: sudo apt-get install libncurses5-dev – smile Mar 20 '13 at 11:37

Open up your terminal and install libncurses-dev by using this command:

sudo apt-get install libncurses-dev
  • 1
    Not found. This should be ncurses-dev as in the answer below. – user643722 Dec 17 '14 at 9:00
  • @user643722: What's the problem? apt-cache show libncurses-dev yields N: Can't select versions from package 'libncurses-dev' as it is purely virtual, which means I could install it like the answer says. – David Foerster Oct 4 '16 at 16:46
  • 3
    libncurses-dev works for me. – Throwaway Account 3 Million Feb 3 at 21:00
  • I know this is ubuntu, but it's still my top result for debian searches... debian uses libncurses5-dev – isaaclw 2 days ago

Above problem solved now. all I did was:

sudo apt-get update
sudo apt-get install ncurses-dev

Tested on Ubuntu 17.04

You should install libncurses5-dev and libncursesw5-dev:

apt install libncurses5-dev libncursesw5-dev

References: https://www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/

protected by Community Oct 8 '14 at 12:04

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.