# Error while installing Ruby Runtime Environment

**URL:** <https://forum.opennebula.io/t/error-while-installing-ruby-runtime-environment/4538>\
**Category:** Product Support\
**Created:** [July 3, 2017, 12:22pm UTC](https://forum.opennebula.io/t/error-while-installing-ruby-runtime-environment/4538 "2017-07-03T12:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enko](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@enko](https://forum.opennebula.io/u/enko)\
**Post date:** [July 3, 2017, 12:22pm UTC](https://forum.opennebula.io/t/error-while-installing-ruby-runtime-environment/4538/1 "2017-07-03T12:22:11Z")

</div>

Hi Here.

Hello,  
I’m new to the forum.  
I’m trying to install Opennebula on Ubuntu 14.04 (using VmWare Workstation. This is for an internship report).  
When I try to install Ruby Runtime Environment, I encounter the following error:  
Rake = “/ usr / bin / rake” gem install --no-ri --no-rdoc aws-sdk --version "= 1.66"  
Building native extensions. This could take a while …  
ERROR: Error installing aws-sdk:  
ERROR: Failed to build gem native extension.

```
Current directory: /var/lib/gems/2.4.0/gems/nokogiri-1.8.0/ext/nokogiri

```

/usr/bin/ruby2.4 -r ./siteconf20170703-14885-1me2n3a.rb extconf.rb  
Mkmf.rb can not find header files for ruby ​​at /usr/lib/ruby/include/ruby.h

Extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.4.0/gems/nokogiri-1.8.0 for inspection.  
Results logged to /var/lib/gems/2.4.0/extensions/x86\_64-linux/2.4.0/nokogiri-1.8.0/gem\_make.out  
Error executing rake = “/ usr / bin / rake” gem install --no-ri --no-rdoc aws-sdk --version “= 1.66”

Can someone unlock me please ??? Thanks in advance

---

<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:** [July 12, 2017, 2:52pm UTC](https://forum.opennebula.io/t/error-while-installing-ruby-runtime-environment/4538/2 "2017-07-12T14:52:38Z")

</div>

Hello,

I’m not sure where did you get Ruby 2.4 inside the Ubuntu 14.04, as the distribution is shipped with Ruby 1.9. Also, I’m not sure which OpenNebula version are you trying. Anyway, the missing header file is usually installed as a dependency of the meta package **ruby-dev** (for Ubuntu 14.04 it is ruby1.9.1-dev, please change the version appropriately).

But for the start, you should ensure you have a clean system with only the vendor supported packages (no custom interpreters), then follow with the current stable OpenNebula **5.2** [front-end installation](http://docs.opennebula.org/5.2/deployment/opennebula_installation/frontend_installation.html) guide.

Best regards,  
Vlastimil Holer
