-
Notifications
You must be signed in to change notification settings - Fork 785
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
BUILD FAILED (OS X 10.14.6 using ruby-build 20191002-2-g786b89f) #1355
Comments
All the Googling I did pointed to issues with not using the proper SSL and adding options like |
I resolved this by removing Now it "just works". So one of the brew binaries I have installed is breaking the install. That leaves only 226 possible culprits. Sheesh. |
Ruby-build doesn't have any easy way to guarantee a sane build environment or tweak the environment or anything like that, does it? |
Trying to think about how to isolate this to find out which package is the issue... |
File access times... I think it's the first time in my life I've used them for anything useful:
Damn |
Thanks for all this research and (sort of weird?) fix. I was attempting to install 2.6.5 with ruby-build (via asdf) and getting the same error re: openssl. I also had openssl 1.1 from homebrew. Unlinking |
Well I do feel better that my figuring it out has helped another person. :-) I bet it's asking pkg-config about openSSL and getting told something confusing... so it's half using OpenSSL 1.0 and half using 1.1... just a guess. |
Unlinking pgk-config worked for me. Very grateful to yyyc514, I had problems installing ruby with rvm, then tried rbenv, and finally got to this. Days in the wilderness! However, it is unclear to me what I should do after the ruby is installed. Should I relink with |
That's what I'd do. I imagine it's helpful for keeping the whole brew build env in sync. |
Wow! thank you guys. This also works on OSx 10.15.1 when installing ruby-2.6.5 via Do we need Cheers guys! |
This thread led me to the right answer, in my case when I ran
my system was failing to build while installing the openssl gem (I think because of a conflicting version in /opt/local/bin/openssl) and I was unable to link it fully due to the message above. I had added the LDFLAGS and CPPFLAGS, but stupidly thought the PKG_CONFIG_PATH didn't apply to me, but when I saw @joshgoebel isolated his issue to pkg-config I realized I probably needed that also. After adding PKG_CONFIG_PATH the build succeeded. |
The error I hit while trying to install
Based on @moracca 's solution above, I looked back through my build logs and saw this part from
All those env vars except for export PATH="/usr/local/opt/openssl@1.1/bin:$PATH";
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib";
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include";
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"; Then tried the install again, which succeeded this time! ✅ If we wanted to, we could then cleanup the env vars again with something like: export PATH=${PATH#/usr/local/opt/openssl@1.1/bin:}
unset LDFLAGS
unset CPPFLAGS
unset PKG_CONFIG_PATH Or just restart our shell to get the defaults back again. |
I'm hitting an error installing with compiling Ruby's OpenSSL stuff:
Full log:
ruby-build.20191003115834.1719.log
I have OpenSSL 1.1.1d from Homebrew:
Version of ruby-build is in title. It is using "openssl from homebrew" and it is adding it to the configure options:
Any ideas? Homebrew manages to build it's own Ruby 2.6.5 just fine, so this has got to be something funky.
The text was updated successfully, but these errors were encountered: