Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't make menuconfig

I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type "make menuconfig" it says:

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

I trying to install "libncurses5-dev", but I get the error:

E: Unable to locate package libncurses5-dev

P.S.

I downloaded and installed the packages manually and now everything is okay! Thanks a lot!!

like image 542
ValeriRangelov Avatar asked Apr 14 '14 00:04

ValeriRangelov


People also ask

How do I search in Create Menuconfig?

If you just want to find “CONFIG_PCI”, press “/” for a search, and “^PCI$” to find the exact match. Great! Press “1” to go to the option, and enable PCI in your kernel. You can use other regexps as well.

What to do after making Menuconfig?

In general, after a make menuconfig or make config , the . config file is changed. This file describes which options are choosen and will tell make and Makefile which file to compile and which options to activate. It may be useful to know that the previous .


2 Answers

You should have run (as root)

aptitude update
aptitude search libncurses

that would suggest you the right package name.

Then try

aptitude install libncurses-dev

and

aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64 

At last, use make-kpkg --initrd binary to compile your kernel. (it will produce *.deb files in the parent directory). You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf

like image 64
Basile Starynkevitch Avatar answered Sep 28 '22 01:09

Basile Starynkevitch


I had the same problem. In my case installation of package libncursesw5-dev solved the issue.

like image 33
gogo Avatar answered Sep 27 '22 23:09

gogo