-
-
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
installing ruby 2.6.0 can't find openssl on Mojave #4562
Comments
I am having a very similar issue. I thought maybe it has something to do with libressl but I notice that rvm installs it's own openssl library, but that it is not being used when building Ruby. |
I actually should clarify believe in my case this is specifically an issue with Ruby versions at 2.4 and older. Looking at my debug logs, it appears that osx_brew thinks I need openssl 1.1 when I actually require 1.0 for it to compile correctly. I believe either ruby in rvm should be able to use 1.1 or the package detector should not just assume it needs openssl 1.1. |
Further data, I have a coworker, who also worked on a fresh instance of Mojave, they are on They are also on |
I also see this with RVM 1.29.7, but not 1.29.4. Reverting back to 1.29.4 with |
also seeing this for |
But calling |
You are missing the `` around |
I tried:
I still get "Could not load OpenSSL." error when trying to |
@marcandre you may want to make sure that brew has openssl installed and that |
Looks ok to me. I even tried again after a
|
You may want to give 1.1 a shot instead of 1.0.2q. I know older versions did not like 1.0.2 maybe newer ones don't like 1.0.2 |
seems like this is still a bug though right? |
yes either way rvm should detect the right openssl to compile with |
I tried
Same result 😢 |
if you run that with |
I didn't see anything. Of course what doesn't help is that installation succeeds, but it's when actually using it that loading openssl fails. |
One thing I noticed is you are using gcc to build Ruby from source in the logs. I can't recall if it was that way when I built 2.6.0 but I would assume you would use the compiler that comes with xcode. |
That is also one difference between our environments, I am using xcode 9.4.1 instead of 10 |
Possibly #4583 fixed it. Can anybody try again after |
With 2.4.2 I can successfully see openssl being found
will try 2.6.0 next |
Confirmed the same for 2.6.0 for my machine thanks for mentioning that recent change @pkuczynski. |
Great! Sorry for the bug! |
with `` works for me |
Issue remains for me. I did
Could this be reopened please? |
Could you please try:
If it does not work, please provide gist with all logs |
@pkuczynski You probably meant |
Yeah, I meant |
So... trying to install ruby 2.5.x or 2.4.x leads into errors as #4608, but installing 2.6.x still works, without openssl loaded properly. |
rvm reinstall ruby-2.3.1 --with-openssl-dir='/usr/local/opt/openssl' |
|
👍 |
Just going to mention that I ran into this issue today while setting up a new workspace for a Ruby project. Installed the latest version of rvm,
My coworker who's running rvm version |
Ok, I figured out.
I had an older version (2.4.1) where openssl was not a problem. I went to the sources directories and compared the Makefile, the congigure.log etc. The missing part was LDFLAGS and CPPFLAGS. |
None of the other suggestions worked for me on Mojave. This worked :
|
Only your solution works for me ! Thanks ! |
Worked for me too! Awsome! Thanks |
Also works for 2.6.5. I was having openssl issues causing make to fail without it. |
I haven't had any problems with newer versions, but installing Ruby 2.3.8 with my RVM at version:
... I did need the instructions from #4562 (comment), OS is Mojave 10.14.6. That's interesting... I don't seem to have had any of those issues installing 2.6.5 or 2.7.0-preview2 I have recently dumped my entire ~/.rvm directory and have some older apps to support, which have yet to be upgraded into 2.4.x, which is why I'm installing 2.3.8, and these instructions were the only ones that helped. (thanks @pchaganti !) |
for me, adding these lines to my
These lines were in the comments when I ran It also turned out I had an existing PKG_CONFIG_PATH line set for a previous version of openssl, so I removed that. |
For me helped this https://stackoverflow.com/questions/15511943/troubles-with-rvm-and-openssl |
The following worked for me: |
when i run |
My problem was I had On MacOS Mojave and Ruby 2.6.4. Thanks! |
Only this worked for me on Mojave:
|
Also worked for Catalina, thank you! |
Without a workaround, this is still an issue, can it be re-opened? |
Head is still not working properly - What worked for me after a lot of fighting. Version: Mojave 10.14.6
|
This still works for me on Big Sur 11.2.1, to install ruby 2.3.7 (change 2.3.3 to 2.3.7). |
This worked for me on Mac OS Ventura 13.2.1 (22D68) Apple M1 Pro having OpenSSL 1.0 following this:
I hope it helps someone else in 2023! ✌🏻🙂 |
Description
Can't install Ruby 2.6 or head on Mac OS 10.14.2.
Steps to reproduce
Expected behavior
I expect it to work.
Actual behavior
"Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. "
I tried reinstalling with
--force
option too:The gemset wrappers log is:
Environment info
The text was updated successfully, but these errors were encountered: