How to install bison on mac OSX

S7_0 picture S7_0 · Aug 4, 2015 · Viewed 36.9k times · Source

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

Answer

user372895986472 picture user372895986472 · Feb 2, 2016

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"