编译内核常遇的报错解决办法,ltp报错等

问题1:openssl报错

报错如下:

[root@localhost *内核目录*]# make -j4
  HOSTCC  scripts/extract-cert
scripts/extract-cert.c:21:25: 致命错误:openssl/bio.h:没有那个文件或目录
 #include <openssl/bio.h>
                         ^
编译中断。
make[1]: *** [scripts/extract-cert] 错误 1
make: *** [scripts] 错误 2

解决办法:
(1)第一种方式:yum install openssl-devel
(2)第二种方式(yum安装失败的话):找到对应的rpm包,手动安装;

问题2:make menuconfig时报错;

第一种错误:

[root@localhost *内核目录*]# make menuconfig
  UPD     scripts/kconfig/.mconf-cfg
  HOSTCC  scripts/kconfig/mconf.o
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: bison: 未找到命令
make[1]: *** [scripts/kconfig/zconf.tab.c] 错误 127
make: *** [menuconfig] 错误 2

解决办法:

[root@localhost *内核目录*]# yum install bison flex

第二种错误:

[root@localhost *内核目录*]# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
 *** 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] 错误 1
make: *** [menuconfig] 错误 2

解决办法:

[root@localhost linux-3.10.107]# yum install ncurses-devel

问题3:ltp测试 make autotools时报错

[root@localhost *相应目录*] #make autotools
autoheader
make: autoheader:命令未找到
make: *** [autoheader] 错误 127

解决办法:

[root@localhost~] #yum install autoconf

猜你喜欢

转载自blog.csdn.net/woshisunyizhen/article/details/109843675