ubuntu中make头文件找不到_make: yacc: Command not found 和 make: lex

转载于

[32]_make: yacc: Command not found 和 make: lex: Command not found​blog.csdn.net
b58ac9a8fc52bb72ebeb15c230c8f492.png

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

解决--------

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值