Skip to content

rbenv install 3.0.4 fails on macOS 13.3.1 #2185

Closed Answered by mislav
coolandsmartrr asked this question in Build failures
Discussion options

You must be logged in to vote

Up-to-date answer that should solve most problems from this thread:

brew install rbenv/tap/[email protected]
curl -fsSL https://github.com/ruby/ruby/commit/1dfe75b0beb7171b8154ff0856d5149be0207724.patch | rbenv install 3.0.7 --patch

Or, to apply the same patch with asdf instead of rbenv:

RUBY_APPLY_PATCHES="https://github.com/ruby/ruby/commit/1dfe75b0beb7171b8154ff0856d5149be0207724.patch" asdf install ruby 3.0.7

Explanation

  • Ruby 3.0 is only compatible with OpenSSL 1.x, but not with macOS system /usr/bin/openssl (actually LibreSSL). The earliest OpenSSL version currently maintained in Homebrew core formula is openssl@3, which is too new, and Homebrew core dropped support for [email protected] a wh…

Replies: 10 comments 45 replies

Comment options

You must be logged in to vote
4 replies
@coolandsmartrr
Comment options

@coolandsmartrr
Comment options

@hsbt
Comment options

hsbt Apr 12, 2023
Maintainer

@coolandsmartrr
Comment options

Comment options

You must be logged in to vote
10 replies
@joekrump
Comment options

@hsbt
Comment options

hsbt Apr 13, 2023
Maintainer

@mislav
Comment options

@hsbt
Comment options

hsbt Apr 14, 2023
Maintainer

@erikw
Comment options

Comment options

You must be logged in to vote
2 replies
@mislav
Comment options

@sudeeptarlekar
Comment options

Comment options

You must be logged in to vote
14 replies
@biancaiz
Comment options

@LedZeck
Comment options

@baochuquan
Comment options

@jsperezg
Comment options

@Etx17
Comment options

Comment options

You must be logged in to vote
2 replies
@mislav
Comment options

@diogorlo
Comment options

Comment options

You must be logged in to vote
12 replies
@taylorgriffinshipt
Comment options

@nicksieger
Comment options

@taylorgriffinshipt
Comment options

@brunopagno
Comment options

@estamos
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ernonemacher
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mislav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet