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
Install fails on Mojave #4608
Comments
Installing 2.6.1 / 2.4.5 produce same failure and errors in the log file. |
The issue seems to be connected with installing rubygems, and not ruby itself:
Can you check this? |
Sorry, but where is the |
AFAIK, everything is contained within |
I started to have the same problem after updating RVM. I will be following this issue. I am using macOS Mojave. Thanks. |
Hey, I tried the following and it worked for me:
The solution above I got from the following comment:
I hope this can help. |
OpenSSL support is bad on macOS since Apple decided to deprecate openSSL and make their own libraries, so this workaround of --with-openssl-dir should be default config for macOS, since what most people will do is just install homebrew openssl. |
@marcandre could you please run |
It seems to have successfully installed ruby without any args. |
The I have OpenSSL 1.0.2q installed via Homebrew, but
The distracting thing is that the error log is still fussing about
as if the earlier part of the directory (which should be There's nothing in the error log that directly references OpenSSL:
|
Still running in the same errors. When installing:
Trying it out afterwards then generates the "Could not load OpenSSL." error on |
Anything I can do to help, or should I reinstall |
I uninstalled Still getting the dreaded "Could not load OpenSSL." error message after installing 2.6.2. 😭 |
I went nuclear, uninstalled |
And, in contrast, I changed nothing, but both Ruby 2.5.4 and Ruby 2.6.2 installed without generating this error. |
@marcandre @pkuczynski can we keep this open until there's a non-nuclear ☢️ solution? 😄 I bumped into this some months ago after The bandaid-solution that worked for me was to run |
Actually, my nuclear explosion fixed things only for 2.4, 2.5 and 2.6. For older Rubies, I had to
This worked well for ruby 2.2 and 2.3. For Ruby 1.9 & 2.1, I get an error on reinstall with the
This was fixed with:
For Ruby 1.8.7, the |
👍 |
Folks, |
(Crossposting my comment because many people in this thread have this issue, yet the thread hasn't addressed it at all) This is still an issue on 10.14.5 installing ruby-2.5.3. Here is my install log:
Pulling the important bits out of the log, we can see
But the command seems to override them to very bad values:
Breaking it down further, these settings are not valid:
This is fundamentally the same issue as #4607 |
For the record: I was trying to install 2.6.3 in Mojave (10.14.5) and got the following error:
Solved this issue by running:
|
openssl 1.0.2 is no longer available via brew and openssl 1.1 does not seem to work with older versions of ruby (2.3.3) in my case. Do I just need to upgrade ruby or is there another work around? |
This worked for me...
|
@twobitfool 's trick worked for me, until I switched of machine, and install of old versions now fails. I'm sorry to report that I've switched to |
Description
I'm having issues installing many versions of Ruby on my mac newly updated to Mojave.
Install gist: https://gist.github.com/marcandre/1cf51577ed11a95b71a72c01c057f132
Log gist: https://gist.github.com/marcandre/3bf7fda62b1e6c979e0b018ebdb09372
I'm clueless as to what is going on; the 3 exception make no sense to me.
Environment info
The text was updated successfully, but these errors were encountered: