[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

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
root@ubuntu:/webserver/boa-0.94.13/src# apt-get install flex
Reading package lists... Done
Building dependency tree       
Reading state information... Done

解决--------

你可能感兴趣的:(Embedded,Linux,Project)