[32]_make: yacc: Command not found 和 make: lex: Command not found

今天移植ubuntu16.04.3中移植boa-0.94.13.tar.gz在配置后make出现以下错误:

make: yacc: Command not found

解决办法:安装yacc!不过我执行apt-get install yacc后说找不到安装包。可能这个安装包使用了别的名字,果然:

root@ubuntu:/webserver/boa-0.94.13/src# apt-get install yacc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yacc
root@ubuntu:/webserver/boa-0.94.13/src# yacc
The program 'yacc' can be found in the following packages:
 * bison
 * bison++
 * btyacc
 * byacc
 * byacc-j
 * perl-byacc
Try: apt install <selected package>

root@ubuntu:/webserver/boa-0.94.13/src# apt-get install byacc  

接着make后在出现:make: lex: Command not found

root@ubuntu:/webserver/boa-0.94.13/src# lex
The program 'lex' can be found in the following packages:
 * flex
 * flex-old
Try: apt install <selected package>
root@ubuntu:/webserver/boa-0.94.13/src# apt-get install flex
Reading package lists... Done
Building dependency tree       
Reading state information... Done

解决--------

make: arm-xilinx-linux-gnueabi-gcc: Command not found CLEAN scripts/basic make[2]: arm-xilinx-linux-gnueabi-gcc: Command not found CLEAN scripts/kconfig 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 YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTLD scripts/kconfig/conf scripts/Kconfig.include:35: compiler 'arm-xilinx-linux-gnueabi-gcc' not found scripts/kconfig/Makefile:90: recipe for target 'xilinx_zynq_defconfig' failed make[1]: *** [xilinx_zynq_defconfig] Error 1 Makefile:567: recipe for target 'xilinx_zynq_defconfig' failed make: *** [xilinx_zynq_defconfig] Error 2 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 HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf Kconfig scripts/Kconfig.include:35: compiler 'arm-xilinx-linux-gnueabi-gcc' not found scripts/kconfig/Makefile:33: recipe for target 'menuconfig' failed make[1]: *** [menuconfig] Error 1 Makefile:567: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2 Makefile:613: include/config/auto.conf: 没有那个文件或目录 Makefile:660: include/config/auto.conf.cmd: 没有那个文件或目录 make: arm-xilinx-linux-gnueabi-gcc: Command not found *** *** Configuration file ".config" not found! *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** Makefile:663: recipe for target '.config' failed make: *** [.config] Error 1
最新发布
03-21
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值