Error in make menuconfig on Ubuntu [How to Solve]

If you use make menuconfig to configure the kernel, and it happens that the ncurses library is not installed in the system (this library is not installed by default in the Ubuntu system), an error will occur. The error message is as follows:

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


The solution is as simple as installing the ncurses library, which can be done on ubuntu/debian systems with the following command.

$sudo apt-get install libncurses5-dev

Ncurses library is the basic library for screen control under character terminal, and many newly developed programs may not be used, but it is often used when compiling some old programs

Similar Posts: