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.1 openssl #1006

Closed
denisemauldin opened this Issue Oct 3, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@denisemauldin

denisemauldin commented Oct 3, 2016

Hi all,

I'm trying to build ruby 2.3.1 on linux 2.6.32-642.1.1.el6.x86_64 and I'm running into errors with openssl. I've tried building with rvm and I've tried building separately, but I can't figure out which version of openssl is supposed to be supported with ruby 2.3.1. I've installed openssl 1.0.2-beta3, openssl 1.0.2.j and openssl 1.1.0b and none of them seem to be working. They all give error:

configuring openssl
Ignore OpenSSL broken by Apple.
Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')
Failed to configure openssl. It will not be installed.

When I force it past that issue, it then won't run gem commands because it gives an SSL error. I'm not sure what to do here, so advice please? Sorry if this is the wrong repo to ask this. Let me know a more appropriate one if possible. Thanks.

@mislav

This comment has been minimized.

Member

mislav commented Oct 5, 2016

Hello @denisemauldin,

Which command did you use to install Ruby 2.3.1? If it was rvm install, then you might be commenting on the wrong project, since RVM is not related to us at all. If it was rbenv install or ruby-build, on the other hand, then you're at the right place.

I'm not sure why you're getting these openssl failures. Ruby 2.3.1 should work with 1.0.2g and 1.0.2h in our experience, and that means that 1.0.2j should also probably work. Have you tried locating your openssl install and passing a path to it using --with-openssl-dir like the error message suggested?

One confusing thing is that the configure script complained about "Ignore OpenSSL broken by Apple", but you're not on macOS at all. It sounds like the configure script might have gotten confused by something at this point, but I'm not sure what. /cc @hsbt

Can you tell us a bit more about your OS?

@hsbt

This comment has been minimized.

Contributor

hsbt commented Oct 6, 2016

Ruby 2.3.1 is not works with OpenSSL-1.1.0. This feature is after Ruby 2.4.0.

And I wondered why this error was displayed on linux environment.

@denisemauldin

This comment has been minimized.

denisemauldin commented Oct 7, 2016

Thanks! I blew away everything and installed 1.0.2j and it works now. I think 1.1.0b was the previous one I'd had installed.

dochang added a commit to dochang/dotfiles that referenced this issue Nov 23, 2016

Install libssl1.0-dev instead of libssl-dev
Ruby 2.3.x does not works with OpenSSL-1.1.0. This feature is after Ruby 2.4.0.

See [1], [2] & [3] for details.

[1]: rbenv/ruby-build#1006
[2]: rvm/rvm#3775
[3]: https://bugs.ruby-lang.org/issues/12324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment