make menuconfig出现错误lexer.lex.c Error 127
编译Linux内核出现错误:make vexpress_defconfig & menuconfigwit@ubuntu:/home/linux-5.4.14# make vexpress_defconfigLEXscripts/kconfig/lexer.lex.c/bin/sh: 1: flex: not foundmake[1]: *** [scripts/Makefile.host
编译Linux内核出现错误:make vexpress_defconfig & menuconfig
wit@ubuntu:/home/linux-5.4.14# make vexpress_defconfig
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make: *** [Makefile:568: vexpress_defconfig] Error 2
wit@ubuntu:/home/linux-5.4.14# make menuconfig
UPD scripts/kconfig/mconf-cfg
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make: *** [Makefile:568: menuconfig] Error 2
解决方法:分别安装词法解析器flex,和语法解析器bison:
apt install flex
apt install bison
————————————————
版权声明:本文为CSDN博主「宅学部落-王利涛」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zhaixuebuluo/article/details/107353849
更多推荐
所有评论(0)