Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rbenv install 3.1.2 fails on Mac 12.6 (21G115) #2060

Closed
besi opened this issue Oct 4, 2022 · 0 comments
Closed

Rbenv install 3.1.2 fails on Mac 12.6 (21G115) #2060

besi opened this issue Oct 4, 2022 · 0 comments
Labels

Comments

@besi
Copy link

besi commented Oct 4, 2022

Steps to reproduce the behavior

  • I did a fresh mac install 12.6
  • installed Xcode 14.0.1 (14A400) also install the dependencies and run xcode-select --install
  • Installed homebrew
  • Install openssl: brew install openssl@3
  • Also added the path to my ~/.zshrc: echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc
  • Instaslled rbenv brew install rbenv
  • Finally I attempted to install the ruby 3.1.2
rbenv install --list
2.6.10
2.7.6
3.0.4
3.1.2
...

Then rbenv install 3.1.2 --verbose and I'm getting:

/var/folders/v5/d9y1qs_16nv9x5bsvjp1dv480000gn/T/ruby-build.20221004111747.39897.q0zBZU ~
Downloading ruby-3.1.2.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.2.tar.gz
curl: (77) error setting certificate verify locations:  CAfile: /usr/local/etc/openssl/certs/cert.pem CApath: none
error: failed to download ruby-3.1.2.tar.gz

BUILD FAILED (macOS 12.6 using ruby-build 20220930)

As mentioned in issue #1998 as well as #2003 I tried including the OPENSSL_CFLAGS like so:

export OPENSSL_CFLAGS=-Wno-error=implicit-function-declaration
rbenv install 3.1.2 --verbose

Same result: ... error: failed to download ruby-3.1.2.tar.gz ...

Currently I'm unable to install 3.1.2.
I did try another version with the same error: error: failed to download ruby-2.7.6.tar.bz2.

I did also try to use the following strategies and exports all to no avail:

echo insecure >> ~/.curlrc
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"

Any help is appreciated!

@besi besi added the bug label Oct 4, 2022
@rbenv rbenv locked and limited conversation to collaborators Oct 4, 2022
@hsbt hsbt converted this issue into discussion #2061 Oct 4, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant