“make: yacc: Command not found” after installing Bison

前端 未结 4 2268
盖世英雄少女心
盖世英雄少女心 2021-02-19 01:50

While running a makefile in gcc 4.1.2 (linux 5), I got the following error

make: yacc: Command not found

By googling, I came to know that this

4条回答
  •  一生所求
    2021-02-19 02:19

    Run the following command on your terminal to install bison, yacc executables and configurations.yacc comes along with bison

    Also you need byacc for a full functional yacc

    sudo apt-get install bison -y
    sudo apt-get install byacc -y
    

    It worked for me.

提交回复
热议问题