make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127 Makefile:705: recipe for target 'config' failed make: *** [config] Error 2 这段错误是什么意思
时间: 2023-11-15 10:42:57 浏览: 72
这段错误提示是 Makefile 在执行 `make config` 命令时出现了问题。其中,`make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127` 表示执行 `make config` 时,Makefile 在处理 `scripts/kconfig/lexer.lex.c` 文件时出错,错误码为 127;而 `Makefile:705: recipe for target 'config' failed` 表示 Makefile 中第 705 行的 `config` 目标构建失败了。
可能的原因有很多,比如缺少依赖、环境变量配置不正确等等。你可以查看 Makefile 文件,找到第 705 行的 `config` 目标,看看它的依赖和执行命令,然后逐步排查问题。
相关问题
/bin/sh: 1: flex: not found scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127 Makefile:692: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
这个错误是由于缺少flex包引起的。您需要安装flex包以便继续进行编译。您可以使用apt-get命令来安装flex包及其开发版本。请按照以下步骤操作:
1. 打开终端
2. 运行以下命令以更新软件包列表:sudo apt-get update
3. 运行以下命令以安装flex包和开发版本:sudo apt-get install flex
4. 输入您的密码进行确认
5. 等待安装完成
安装完成后,您可以尝试重新运行make命令来编译您的项目。
LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] /bin/sh: 1: bison: not found scripts/Makefile.host:17: recipe for target 'scripts/kconfig/parser.tab.h' failed make[1]: *** [scripts/kconfig/parser.tab.h] Error 127 Makefile:692: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
这个错误是由于缺少bison包引起的。您需要安装bison包以便继续进行编译。您可以使用apt-get命令来安装bison包及其开发版本。请按照以下步骤操作:
1. 打开终端
2. 运行以下命令以更新软件包列表:sudo apt-get update
3. 运行以下命令以安装bison包和开发版本:sudo apt-get install bison
4. 输入您的密码进行确认
5. 等待安装完成
安装完成后,您可以尝试重新运行make命令来编译您的项目。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)