编译linux内核报错

1、/bin/sh: 1: flex: not found

scripts/Makefile.lib:202: recipe for target 'scripts/kconfig/zconf.lex.c' failed
make[2]: *** [scripts/kconfig/zconf.lex.c] Error 127
Makefile:514: recipe for target 'silentoldconfig' failed

$ sudo apt-get install libssl-dev 

3.make menuconfig显示错误“Your display is too small to run Menuconfig!”

 

如果在终端执行 make menuconfig ,显示错误:
Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2
表示终端窗口太小。解决办法可以是把终端窗口适当的调大(或是直接最大化)就行了。
 


3、Linux内核编译时出现fatal error: openssl/opensslv.h: No such file or directory错误的解决办法

To install OpenSSL development package on Debian, Ubuntu or their derivatives:

$ sudo apt-get install libssl-dev 

To install OpenSSL development package on Fedora, CentOS or RHEL:

$ sudo yum install openssl-devel 

你可能感兴趣的:(linux)