Build failed for Ruby 3.2.0-dev: Incorrect bison version #2129
-
I just tried to install ruby 3.2.0-dev, and it failed with this error:
I tried installing bison via homebrew with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
You can see its detail via
|
Beta Was this translation helpful? Give feedback.
-
I'm on Big Sur and this worked:
|
Beta Was this translation helpful? Give feedback.
-
Apart from installing Bison, you also need to explicitly configure your PATH so that Homebrew-provided bison takes precedence over system bison: brew install bison libyaml gmp readline openssl@1.1 PATH="$(brew --prefix bison)/bin:$PATH" \
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1) --disable-install-doc" \
rbenv install 3.2.0-dev Note: only |
Beta Was this translation helpful? Give feedback.
Apart from installing Bison, you also need to explicitly configure your PATH so that Homebrew-provided bison takes precedence over system bison:
Note: only
-dev
versions of Ruby require Bison. The PATH adjustment is not necessary for stable versions.