ubuntu 编译内核出现的问题

1.   /bin/sh: 1: bison: not found

错误信息:
/bin/sh: 1: bison: not found
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:528: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

解决方案:

apt-get install bison -y

2.   /bin/sh: 1: flex: not found

错误信息:

/bin/sh: 1: flex: not found
scripts/Makefile.lib:188: recipe for target 'scripts/kconfig/zconf.lex.c' failed
make[1]: *** [scripts/kconfig/zconf.lex.c] Error 127
Makefile:528: recipe for target

解决方案: sudo apt-get install flex

3.  fatal error: openssl/opensslv.h: 没有那个文件或目录

错误信息:

scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: 目录没有那个文件或
 #include
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:90: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:1099: recipe for target 'scripts' failed
make: *** [scripts] Error 2

原因:

没有安装libssl-dev .  libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl对ssl进行了实现

解决方案:

sudo apt-get install libssl-dev   来安装libssl-dev即可,


 

你可能感兴趣的:(ubuntu,ubuntu,内核编译,not,found,error)