转载于
[32]_make: yacc: Command not found 和 make: lex: Command not foundblog.csdn.net
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
解决--------