Skip to content
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

ruby installs failing for Macs (openssl 1.1.1q) #285

Open
edmangimelli opened this issue Jul 15, 2022 · 1 comment
Open

ruby installs failing for Macs (openssl 1.1.1q) #285

edmangimelli opened this issue Jul 15, 2022 · 1 comment

Comments

@edmangimelli
Copy link

edmangimelli commented Jul 15, 2022

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:)
openssl/openssl#18720 (comment)
#184 (comment)

@aturkewi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants