ruby installs failing for Macs (openssl 1.1.1q)
- Dominant language
- Shell
- Stars
- 734
- Forks
- 156
- Avg merge
- 17h 6m
- Merged PRs (30d)
- 1
Description
**UPDATE**: If you're installing Ruby 2.6 or below on an M1 (see instructions below) there's a good chance you'll run into some [gem wonkiness](https://www.reddit.com/r/ruby/comments/xepx8c/ruby_fails_to_install_on_macos_126_solution/iojpi82/).
[Bundle's `force_ruby_platform` ](https://bundler.io/man/bundle-config.1.html) solved this for my team.
---
Been running into this for the last couple of days. Thought it was only affecting M1s, but it seems to be affecting both.
Workarounds:
Intel:
```
ASDF_RUBY_BUILD_VERSION=v20220630 asdf install ruby SOME_VERSION
```
M1:
```
optflags=-Wno-error=implicit-function-declaration ASDF_RUBY_BUILD_VERSION=v20220630 asdf install ruby SOME_VERSION
```
this seems to avoid openssl 1.1.1q and instead uses 1.1.1n
(where those flags come from:)
https://github.com/openssl/openssl/issues/18720#issuecomment-1181580006
https://github.com/asdf-vm/asdf-ruby/issues/184#issuecomment-784395266
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the installation failure with the Intel and M1 commands in the issue, comparing the affected OpenSSL versions and ASDF_RUBY_BUILD_VERSION setting. Use the linked asdf-ruby and OpenSSL discussions for context; done means the affected Ruby versions install successfully without the reported failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, shell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100