Menuconfig problem

Hi, I want to make menuconfig and got these problem. Here’s what i did and got:

/kernel-4.9$ sudo make menuconfig
scripts/kconfig/mconf  Kconfig
drivers/net/ethernet/nvidia/Kconfig:30: can't open file "drivers/net/ethernet/nvidia/eqos/Kconfig"
scripts/kconfig/Makefile:28: recipe for target 'menuconfig' failed
make[1]: *** [menuconfig] Error 1
Makefile:565: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

Thx!

Normally you don’t want to compile as root. Once you have done so, then some of the non-root files become root ownership. If you are in a system directory, then probably you need root, but otherwise I would avoid that, e.g., use a clean output directory which is owned by a regular user.

That said, there may be package requirements you are missing. Try this first:

sudo apt-get install libncurses5-dev

Also, did you run this from a directory with full source code?