配置Linux内核支持make menuconfig

新环境从0配置Linux内核支持make menuconfig

hudahua@hudahua-virtual-machine:~/workspace/tools/linux-5.15.13$ make menuconfig

Command ‘make’ not found, but can be installed with
sudo apt install make # version 4.2.1-1.2, or
sudo apt install make-guile # version 4.2.1-1.2

sudo apt install make

再次make menuconfig

linux-5.15.13$ make menuconfig

提示缺少如下安装包
HOSTCC scripts/basic/fixdep
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev

  • depending on your distribution).

* You may also need to install pkg-config to find the

  • ncurses installed in a non-default location.

make[1]: *** [scripts/kconfig/Makefile:211: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:616: menuconfig] Error 2
hudahua@hudahua-virtual-machine:~/workspace/tools/linux-5.15.13$

依次安装

sudo apt-get install libncurses
sudo apt-get install ncurses-dev
sudo apt-get  install pkg-config

再次make menuconfig报错
在这里插入图片描述

sudo apt-get install flex

make menuconfig 再次解决下一个错误
在这里插入图片描述

sudo apt-get install bison -y

到此就可以看见make menuconfig界面了

配置Linux内核支持make menuconfig_第1张图片

你可能感兴趣的:(linux,kernel)