linux 内核安装报错 缺少lib依赖
报Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel
yum install -y elfutils-libelf-devel
报make[1]: *** [scripts/kconfig/zconf.tab.c] 错误 127
yum install -y flex
出现/bin/sh: 1: bison: not found错误。
yum install -y bison
报Run 'make oldconfig && make prepare' on kernel src to fix it
make oldconfig && make prepare && make scripts
报scripts/Makefile.host:94: recipe for target ‘scripts/basic/fixdep’ failed
通过写两个命令
sudo apt-get install bison
sudo apt-get install flex
/bin/sh: gcc: 未找到命令
yum -y install gcc automake autoconf libtool make
gcc --version
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
yum install ncurses-devel
Ubuntu执行以下命令即可安装库:
apt-get install libncurses5-dev
CentOS执行以下命令即可安装库:
# yum install ncurses-devel