Linux/Trouble Shooting
[Linux] 에러해결: /bin/sh: 1: flex: not foundmake[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
2023. 12. 10. 02:49반응형
[문제/에러]
SYNC include/config/auto.conf.cmd
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:630: syncconfig] Error 2
make[1]: *** [Makefile:750: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-78-generic'
make: *** [Makefile:9: default] Error 2
[원인]
/bin/sh 이라는 애(쉘)가 flex를 발견할 수 없어서 나오는 에러이다.
[해결방안]
아래의 명령어를 통해 flex 를 설치한다.
sudo apt-get install flex
반응형