# Install Open Nebula On Redhat --error on Gem process

**URL:** https://forum.opennebula.io/t/install-open-nebula-on-redhat-error-on-gem-process/7161
**Category:** Product Support
**Created:** [April 23, 2019, 2:41am UTC](https://forum.opennebula.io/t/install-open-nebula-on-redhat-error-on-gem-process/7161 "2019-04-23T02:41:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![michael.fan](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@michael.fan](https://forum.opennebula.io/u/michael.fan)
#### Post date: [April 23, 2019, 2:41am UTC](https://forum.opennebula.io/t/install-open-nebula-on-redhat-error-on-gem-process/7161/1 "2019-04-23T02:41:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)
#### Post date: [April 23, 2019, 12:39pm UTC](https://forum.opennebula.io/t/install-open-nebula-on-redhat-error-on-gem-process/7161/2 "2019-04-23T12:39:50Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![michael.fan](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@michael.fan](https://forum.opennebula.io/u/michael.fan)
#### Post date: [April 24, 2019, 3:52am UTC](https://forum.opennebula.io/t/install-open-nebula-on-redhat-error-on-gem-process/7161/3 "2019-04-24T03:52:44Z")

</div>

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
