-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 2.3.7 fails to install on macOS Mojave #4781
Comments
Attempt 2Inspired by https://rvm.io/integration/macports-before-autolibs. Configure compiler flags
Force RVM to use the packages already installed
|
Attempt 3Inspired by https://rvm.io/integration/macports-before-autolibs. Install older version of OpenSSL into RVM
Set up compiler flags to use the openssl package inside
|
Attempt 4Install old version of openssl via ports.
Configure everything to use the old openssl installed via ports
Install, relying on pkg-config and compiler flags in ENV
It installs, but without OpenSSL...
|
Attempt 5Configure pkg-config to find the old openssl version installed via ports
Configure RVM to install with the old openssl version
ConclusionThis attempt seems to fix the problem for me. I am not sure what to make of all this, but at least this issue is here for posterity now. It seems I needed to
It's possible that the same could be achieved with the RVM-installed package in |
@koppen I successfully installed ruby 2.3.8 with brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/8c9b113bc6812dc74c598c8f860017e42fba8d78/Formula/openssl.rb
rvm install 2.3 --with-openssl-lib=/usr/local/opt/openssl/lib --with-openssl-include=/usr/local/opt/openssl/include
or
rvm install 2.3 --with-openssl-dir=/usr/local/opt/openssl Thanks |
For Catalina users, best use this commit. It's the latest commit for the 1.0.2 version.
|
If you use HomeBrew on macOS and don't wish to install an old version of openssl from an old commit and risk conflicts with other packages (lets just say my trust in Homebrew has gone way down this year with the silent updates enabling aggressive package updates and deletion of old packages), another option is to download the source from https://www.openssl.org/source/ and configure/make/install, and have RVM use that installation.
|
@jcrate Everything here seemed to work for me until it came to installing gems - seems that the installation of openssl doesn't know where the root certificates are installed on OSX.
|
Worked for me with Ruby 2.1.5 on Mojave 10.14.6. |
Hi, I found this docker image works out of the box
Dockerfile
Referencehttps://bundler.io/v2.0/guides/rubygems_tls_ssl_troubleshooting_guide.html |
It works for me! |
This also works for me. Is there a better work around than making your own |
Worked for me with Ruby 2.3.8 on Catalina 10.15.2. |
Here is what worked for me:
Cheers! |
This works well for me. Except that I had to add PKG_CONFIG_PATH. Thanks!
|
I was installing a newer version of Ruby on Mac Mojave and it was failing. This was the error I was getting.
Installation succeeded with the below command.
Make sure the openssl-dir is correct, and it should work. |
Description
I am trying to install Ruby 2.3.7 on macOS Mojave but I am getting compilation errors and ultimately the installation is halted.
Looking at the many other issues around these versions it seems likely I am hitting issues with OpenSSL 1.1 and Ruby 2.3 being incompatible with each other. But I've been banging my head against this issue for way too long now, so I figured I might as well flag it here.
Steps to reproduce
rvm get master
rvm install 2.3.7
Expected behavior
Actual behavior
Debug mode:
Environment info
The text was updated successfully, but these errors were encountered: