77

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
Zanna
  • 70,465

3 Answers3

118

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

sudo apt-get install libncurses-dev
David Foerster
  • 36,264
  • 56
  • 94
  • 147
shahid
  • 1,189
  • 1
  • 7
  • 3
23

Above problem solved now. all I did was:

sudo apt-get update
sudo apt-get install ncurses-dev
Parto
  • 15,325
  • 24
  • 86
  • 117
MayurKubavat
  • 331
  • 2
  • 4
  • It says Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'. But I specifically need libncurses-dev instead of libncurses5-dev. – Chirag Mittal Nov 24 '19 at 09:21
14

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/