Search code examples
linuxkernel-module

Trying to run make menuconfig to manually configure the kernel, but gets an error


I downloaded the linux operating system kernel source 4.15.1 from the kernel website, installed the required packages:

kernel-package, libncurses5 and libncurses5-dev.

Unpacked the tar archive and navigated to the resulting directory. I wanted to proceed to the kernel configuration, but when I enter the make menuconfigcommand, I get the following error:

make: *** empty variable name. Stop.
make: *** [Makefile:460: scripts_basic] Error 2

I tried for a very long time to find a solution to this problem on the internet, reinstalling all packages, even looking at the contents of the Makefile kernel file, but nothing gave me any results.

Although after entering this command I was expecting an ncurses utility to open for manual kernel tuning, but only my version, like this: utility ncurses


Solution

  • I was able to fix the error and run the utility by re-downloading the package with a different compression method. For some reason, the .xz format I selected does not decompress correctly. The error was that not all required kernel files were present.