make menuconfig 编译报错 处理

  • 错误1

 HOSTCC  scripts/basic/fixdep
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel or libncurses-dev 
 *** depending on your distribution) and try again.
 *** 
scripts/kconfig/Makefile:229: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:516: recipe for target 'menuconfig' failed

 

解决办法

apt-get install -y libncurses-dev

 

  • 错误2

root@iZ2zea0oa5iduixgtbqd51Z:/samsung/aaa/u-boot# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:226: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:516: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

解决办法

apt-get install bison -y
  • 错误3

root@iZ2zea0oa5iduixgtbqd51Z:/samsung/aaa/u-boot# make menuconfig
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.lib:218: recipe for target 'scripts/kconfig/zconf.lex.c' failed
make[1]: *** [scripts/kconfig/zconf.lex.c] Error 127
Makefile:516: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

解决办法

apt-get install flex -y

 


版权声明:本文为siemens_xp原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。