Ruby 2.6.9 build fails on CentOS 7, probably due to an OpenSSL issue? #1919
Replies: 1 comment
-
Hello! I'm having the same issue while trying to install Ruby 3.0.3 Suggested build environment for CentOS has "yum install -y gcc-6..." but the highest version that can be installed through yum is 4.8.5, so I installed devtoolset-9 which includes gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) (I chose version 9 because I successfully installed Ruby 3.0.3 on my PC Ubuntu 20.04 which has gcc 9) make[2]: вход в каталог «/tmp/ruby-build.20220316175851.3171.jQdUem/ruby-3.0.3/ext/openssl» I found this issue in OpenSSL for Ruby. There is an assumption that this error might be because of different OpenSSL versions getting mixed up and the author suggests to use --with-openssl-dir= option. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all.
So I figured I'd install Ruby 2.6.9 for my Rails 6.0.4.4 project, as it seems like it is recommended to use with Rails 6, and Ruby 2.5.x is now EOL. This is on a fully-updated CentOS 7 box, with OpenSSL 1.1.1i. I've combed the internet and found Ruby <2.4 is incompatible with >OpenSSL 1.1.0, so that's another reason I'm confused.
EDIT 25 January 2022 at 1417:
I've opted to go for Ruby 2.7.5, since it seems like Rails 6.0.4.4 will work just fine with that, and it's "closer" to the branch I was initially developing with. Same error! However it seems to be pretty clearly an OpenSSL issue, just not sure what yet!
Output of
openssl version
:OpenSSL 1.1.1i 8 Dec 2020
/usr/local/include/openssl
is a directory that definitely exists, and definitely has all kinds of*.h
files in it (including the ones referenced in the makefile log down there).This is the output from the shell:
This is the contents of
/tmp/ruby-build.20220125160016.5383.log
:Beta Was this translation helpful? Give feedback.
All reactions