ruby installs failing for Macs (openssl 1.1.1q)
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.
Bundle's force_ruby_platform 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
Yeah, it looks like it's an issue with 1.1.1q.
You can allow it to still build by setting this flag though OPENSSL_CFLAGS=-Wno-error=implicit-function-declaration
source