-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Can't install ruby on M1 Mac "use of undeclared identifier 'RSA_SSLV23_PADDING'" #409
Comments
Same issue observed for intel processor as well. |
This looks like a compatibility difference between the ruby and the version of openssl. Also, Can you try reproducing this without ruby-install?
If manually compiling also fails, than this issue needs to be reported upstream to https://bugs.ruby-lang.org/. |
hey folks same issue here. on an intel (big sur 11.6) getting issues with a simple ruby-install 2.7.2 where openssl failures appear.
it appears that there is some weird symlink issue. I have already tried exporting flags and paths to my /usr/bin file where homebrew installed openssl but no luck. at other times i get
|
I had this issue with an intel mac too. It's because homebrew now defaults openssl to openssl@3 instead of [email protected] Try this:
|
manual build fails, too.
....
|
it seems this issue is covered by ruby/openssl#369 |
@grimm26 see my previous comment. Ruby doesn't support openssl 3 yet. |
After running |
I can verify that this also worked for me. Same issue, homebrew had openssl@3 installed; when I removed it and used [email protected] to compile Ruby 3.0.2 it worked just fine. |
PR #410 has been merged which pins homebrew's openssl dependency to |
ruby-install 0.8.3 has been released which pins the homebrew openssl dependency to |
We temporarily removed the brewed versions of openssl in order to satisfy ruby-install. See postmodern/ruby-install#409 for details. By the time we need ruby-install again hopefully the issues with homebrew openssl will have sorted themselves out.
macos big sur uninstall openssl@3
reinstall [email protected]
#open new shell
rvm reinstall "ruby-3.0.0" --with-openssl-dir=`brew --prefix [email protected]` --disable-binary # ok this flow worked for me |
Unfortunately, this isn't working for me (also M1 mac). The only difference, I think, is that I'm using openssl 1.1 from macports. |
brew install [email protected] |
@emptyflask Thank you A LOT!! |
This worked for me! thx🥰 |
|
FWIW, installation of legacy versions of ruby, say 2.6 or 2.7 which require [email protected] may fail when openssl3 is present on a Mac. Specifying To fix, specify In addition, In other words:
|
This worked on my M1 Mac as long as I uninstalled openssl@3 first ... otherwise it still failed oddly (possibly since I had /opt/homebrew/opt/openssl@3/bin in my PATH not sure ). brew uninstall --ignore-dependencies openssl@3
ruby-install ruby-3.0.1 -- --with-openssl-dir=$(brew --prefix [email protected]) # I needed 3.0.1 rather than 3.0.2 but close enough
brew install openssl@3 # needed due to software already installed against openssl@3 Thank you!! |
很有帮助,谢谢 |
mac os sonoma 14.1.2, for some other reason, I already have an openssl@3 installed in my homebrew, with an [email protected] at the same time, so the comand: rvm install 2.7.2 --with-openssl-dir=$(brew --prefix [email protected]) not working for me Then I uninstalled the openssl@3, everything is becoming OK |
@ziggear |
|
Description
Steps To Reproduce
Steps to reproduce the bug:
$ ruby-install ruby -- --with-openssl-dir=$(brew --prefix openssl)
Expected Behavior
ruby should be installed
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: