Search code examples
macosbisonthrift

How to install bison on mac OSX


I'm trying to install Thrift on my macbook. Otherwise I got an error:

configure: error: Bison version 2.5 or higher must be installed on the system!

So tried to install Bison on my OS, but I didn't find tutorial on internet. Does anyone who can tell me how to install Bison on my system ?

Kind Regards


Solution

  • See here. You can install with brew:

    brew install bison
    

    Then update your scripts or your shell config to use brew's bison first in
    your PATH:

    export PATH="$(brew --prefix bison)/bin:$PATH"
    

    Or

    export PATH="/usr/local/opt/bison/bin:$PATH"