Install Open Nebula On Redhat --error on Gem process

HI,

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

I receive error on
/usr/share/one/install_gems

Fetching nokogiri 1.6.8.1
Installing nokogiri 1.6.8.1 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-1.6.8.1 for inspection.
Results logged to /usr/local/share/gems/gems/nokogiri-1.6.8.1/ext/nokogiri/gem_make.out

An error occurred while installing nokogiri (1.6.8.1), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.6.8.1' --source 'https://rubygems.org/' 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
nokogiri
Error installing gems

my system:
uname -r
3.10.0-514.6.1.el7.x86_64

would anyone help on this case?

Michael

Hello @michael.fan,

please check the steps specific to RHEL:
http://docs.opennebula.org/5.8/deployment/opennebula_installation/frontend_installation.html#installing-on-centos-rhel-7

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

Best regards,
Vlastimil

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

Complete!
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.

Michael