[SOLVED] New install of 5.8 fails to install ruby

Not entirely sure that helped. I used RVM and it installed a newer version of ruby in /usr/local/bin . After fixing some PATH issues I now get a newer version:

# ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]
#

Now when I run “/usr/share/one/install_gems” I get:

ruby openssl libraries are needed. They usually come as companion package to ruby.

I ignored that and tried to install the zlib library, but it now fails with:

# gem install zlib -v 0.1.0
ERROR:  Loading command: install (LoadError)
	cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

I get the same error whether I specify the version or not.

I have confirmed that zlib and OpenSSL are installed:

# yum install zlib
...
Package zlib-1.2.7-18.el7.x86_64 already installed and latest version
Nothing to do\#  yum install openssl
...
Package 1:openssl-1.0.2k-16.el7.x86_64 already installed and latest version
Nothing to do
# 

I made sure that autolibs was enabled in case that was the problem and reinstalled ruby and rails, but I still ge the “ruby openssl libraries are needed” error.

I have “openssl-devel” installed (required for ruby, it seems).

I tried “gem install bundler” and it returned

ERROR:  Loading command: install (LoadError)
	cannot load such file -- zlib

which strongly suggests that zlib is required to just get the install command working, so “gem install zlib” is surely never going to work since there is a circular dependency there.

Any other thoughts?