I made menuconfig to fix some of the Kernel, but I get an error in scripts/kconfig/zconf.lex.c.

Asked 2 years ago, Updated 2 years ago, 89 views

I downloaded the kernel source code (linux-5.0) and tried to run make menuconfig or make oldconfig, but I got the following error:I understand that there is no file called zconfig.lex.c, but what kind of file is zconfig.lex.c?Also, how do you create it?Should I?

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

c kernel

2022-09-30 19:46

1 Answers

This part of the error message is important.

/bin/sh:1:flex:not found

In other words, the error flex command was not found. The error is not that the file zconf.lex.c was not found.recipe for target'scripts/kconfig/zconf.lex.c'failed was not found because of the reason for the failure.

The flex is one of the phrase parser, which can be installed in a manner tailored to your operating system or package manager.For example, sudo apt install flex for Ubuntu.


2022-09-30 19:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.