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

前端 未结 4 2266
盖世英雄少女心
盖世英雄少女心 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:11

    I ran into a similar issue on RHEL7.

    Find where bison is:

    $:which bison
    
    */bin/bison*
    

    Create symlink to bison from yacc:

    sudo ln -s /bin/bison /bin/yacc
    

    And that should solve the problem.

提交回复
热议问题