Install Open Nebula On Redhat --error on Gem process


I am trying to install OpenNebula on a fresh redhat server.

I receive error on

Fetching nokogiri
Installing nokogiri with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb --use-system-libraries

mkmf.rb can’t find header files for ruby at /usr/share/include/ruby.h

Gem files will remain installed in /usr/local/share/gems/gems/nokogiri- for inspection.
Results logged to /usr/local/share/gems/gems/nokogiri-

An error occurred while installing nokogiri (, and Bundler cannot continue.
Make sure that gem install nokogiri -v '' --source '' succeeds before bundling.

In Gemfile:
azure was resolved to 0.7.10, which depends on
azure-core was resolved to 0.1.14, which depends on
Error installing gems

my system:
uname -r

would anyone help on this case?



please check the steps specific to RHEL:

Most likely you are missing additional RHEL repositories with ruby-devel and other packages.

Best regards,

Thanks Vlastimil,
I took you advise and tried on a fresh Centos7.
I strictly follow the instruction,but
during /usr/share/one/install_gems, I got this:

libss.x86_64 0:1.42.9-13.el7
libstdc++.x86_64 0:4.8.5-36.el7_6.1
mariadb-libs.x86_64 1:5.5.60-1.el7_5
nspr.x86_64 0:4.19.0-1.el7_5
nss.x86_64 0:3.36.0-7.1.el7_6
nss-pem.x86_64 0:1.0.3-5.el7_6.1
nss-softokn.x86_64 0:3.36.0-5.el7_5
nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5
nss-sysinit.x86_64 0:3.36.0-7.1.el7_6
nss-tools.x86_64 0:3.36.0-7.1.el7_6
nss-util.x86_64 0:3.36.0-1.1.el7_6
zlib.x86_64 0:1.2.7-18.el7

Don’t run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
fips.c(145): OpenSSL internal error, assertion failed: FATAL FIPS SELFTEST FAILURE
Error installing gems

it seems all rpms are installed.
but it follows a warning and an error.

I do not think the warning for running bundler as root results in the error.

the messages: error installing gems seems related with the fips.c(145).

could you help me out on this.

Thanks in advance.