# Error installing aws-sdk gem

**URL:** <https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533>\
**Category:** Integration Support\
**Created:** [November 30, 2015, 8:16am UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533 "2015-11-30T08:16:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [November 30, 2015, 8:16am UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/1 "2015-11-30T08:16:01Z")

</div>

Hi all,

When installing the latest version of OpenNebula from source I get the following error when installing the gems:

gem install --no-ri --no-rdoc aws-sdk --version “= 1.33”  
Fetching: mini\_portile2-2.0.0.gem (100%)  
ERROR: Error installing aws-sdk:  
mini\_portile2 requires Ruby version \>= 1.9.2.  
Error executing gem install --no-ri --no-rdoc aws-sdk --version “= 1.33”  
[root@opennebula install\_gems]#

Please fix as I only install OpenNebula from source.

Thanks,  
Jesus

---

<div class="post-metadata">

**Author:** ![dmolina](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dmolina/32/22_2.png) [@dmolina](https://forum.opennebula.io/u/dmolina)\
**Post date:** [November 30, 2015, 9:12am UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/2 "2015-11-30T09:12:55Z")

</div>

Could you try installing:  
aws-sdk (1.50.0)  
mini\_portile (0.6.1)

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [November 30, 2015, 6:36pm UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/3 "2015-11-30T18:36:19Z")

</div>

Same error:

[root@opennebula install\_gems]# gem install aws-sdk -v 1.50  
Fetching: aws-sdk-1.50.0.gem (100%)  
Successfully installed aws-sdk-1.50.0  
ERROR: Error installing aws-sdk:  
mini\_portile2 requires Ruby version \>= 1.9.2.  
[root@opennebula install\_gems]#

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [December 1, 2015, 6:10am UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/4 "2015-12-01T06:10:42Z")

</div>

Forgot to add that I also installed the version 0.6.1 of mini\_portile, but seems that even with this installed, when I run gem install aws-sdk -v 1.50 it wants to install the mini\_portile2 gem instead.

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [December 1, 2015, 2:29pm UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/5 "2015-12-01T14:29:46Z")

</div>

The gem mini\_portile2 is a dependency of recent versions of nokogiri. That is a dependency of aws-sdk. I think you should first install nokogiri:

```auto
# gem install nokogiri --version "< 1.6.0"
# gem install aws-sdk -v 1.50

```

`install_gems` script already installs that version of nokogiri before trying to install aws-sdk.

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [December 1, 2015, 4:34pm UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/6 "2015-12-01T16:34:53Z")

</div>

Hi Javi, Daniel,

Thanks for your response. When installing OpenNebula from source, I always run the [install.sh](http://install.sh) script like so:

```
./install -u oneadmin -g oneadmin

```

Then after that I run the install gems script which should install noko-giri, but this is when the script actually failed when I did it.

Now what is different about this installation is that I had version 4.14.0 installed previously, but I ran the install script with the delete option, then I deleted the remaining folders and dropped the OpenNebula database. Then I ran through my installation procedures from building the js files for SunStone with bower and grunt, running scons on the source folder, installing and then running the install\_gems scripts which always succeeded before, but now it complains about this error.

Is the issue, that I had the previous version installed and this should be done on a clean CentOS install?

Thanks,  
Jesus

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [December 1, 2015, 6:19pm UTC](https://forum.opennebula.io/t/error-installing-aws-sdk-gem/1533/7 "2015-12-01T18:19:59Z")

</div>

I have tried the installation on a brand new VM without a previously installed version of OpenNebula and I still get the same error. Just in case I’m running Ruby version 1.8.7 from RVN.

I have also tried running install\_gems without the ec2\_hybrid and that works.

Now I have come to find out that when I downloaded the latest version of OpenNebula from Github, this version seems to be behind what has been released? Or probably the release name has not been updated? The UI says 4.14.1 instead of the 4.14.2 version and I’m wondering if a merge has occurred between your internal repo and that in Github. As of 12/1 17:00PST this is what I see:

[root@opennebula one]# git log  
commit 71e17625cc7e5f53b5539bc1b0e4ae5cc92be83b  
Author: Carlos Martín [cmartin@opennebula.org](mailto:cmartin@opennebula.org)  
Date: Mon Nov 30 15:53:03 2015 +0100

```
Bug #4216: Support for text64 user inputs in provision tab

```

And here is the spit out from my command line when installing:

[root@opennebula install\_gems]# gem install nokogiri --version “\< 1.6.0”  
Building native extensions. This could take a while…  
Successfully installed nokogiri-1.5.11  
Installing ri documentation for nokogiri-1.5.11

No definition for parse\_memory

No definition for parse\_file

No definition for parse\_with

No definition for get\_options

No definition for set\_options  
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block  
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block  
Done installing documentation for nokogiri after 5 seconds  
1 gem installed  
[root@opennebula install\_gems]# gem install aws-sdk -v 1.50  
ERROR: Error installing aws-sdk:  
mini\_portile2 requires Ruby version \>= 1.9.2.  
[root@opennebula install\_gems]# ./install\_gems  
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/site\_ruby/1.8/rubygems/core\_ext/kernel\_require.rb:55: command not found: lsb\_release -a  
lsb\_release command not found. If you are using a RedHat based  
distribution install redhat-lsb

Select your distribution or press enter to continue without  
installing dependencies.

1. CentOS/RedHat/Scientific
2. Ubuntu/Debian

0  
Distribution “redhat” detected.  
About to install these dependencies:

- gcc
- rubygem-rake
- libxml2-devel
- libxslt-devel
- patch
- ruby-devel
- make

Press enter to continue…

yum install gcc rubygem-rake libxml2-devel libxslt-devel patch ruby-devel make  
Loaded plugins: fastestmirror  
Setting up Install Process  
Loading mirror speeds from cached hostfile  
epel/metalink | 13 kB 00:00

- base: [mirror.trouble-free.net](http://mirror.trouble-free.net)
- epel: [mirror.symnds.com](http://mirror.symnds.com)
- extras: [mirrors.lga7.us.voxel.net](http://mirrors.lga7.us.voxel.net)
- remi-safe: [mirrors.netix.net](http://mirrors.netix.net)
- updates: ftp.usf.edu  
base | 3.7 kB 00:00  
epel | 4.3 kB 00:00  
epel/primary\_db | 5.8 MB 00:00  
extras | 3.4 kB 00:00  
nodesource | 2.5 kB 00:00  
one | 2.9 kB 00:00  
remi-safe | 2.9 kB 00:00  
updates | 3.4 kB 00:00  
Package gcc-4.4.7-16.el6.x86\_64 already installed and latest version  
Package rubygem-rake-0.8.7-2.1.el6.noarch already installed and latest version  
Package libxml2-devel-2.7.6-20.el6.x86\_64 already installed and latest version  
Package libxslt-devel-1.1.26-2.el6\_3.1.x86\_64 already installed and latest version  
Package patch-2.6-6.el6.x86\_64 already installed and latest version  
Package ruby-devel-1.8.7.374-4.el6\_6.x86\_64 already installed and latest version  
Package 1:make-3.81-20.el6.x86\_64 already installed and latest version  
Nothing to do  
About to install the gems for these components:
- sunstone
- quota
- cloud
- auth\_ldap
- vmware
- oneflow
- ec2\_hybrid
- oca
- onedb

Press enter to continue…

gem install --no-ri --no-rdoc nokogiri --version “\< 1.6.0”  
Building native extensions. This could take a while…  
Successfully installed nokogiri-1.5.11  
1 gem installed  
gem install --no-ri --no-rdoc zendesk\_api --version “\< 1.5”  
Successfully installed zendesk\_api-1.4.6  
1 gem installed  
gem install --no-ri --no-rdoc net-ldap --version “\< 0.9”  
Successfully installed net-ldap-0.8.0  
1 gem installed  
gem install --no-ri --no-rdoc treetop --version “\>= 1.6.3”  
Successfully installed treetop-1.6.3  
1 gem installed  
gem install --no-ri --no-rdoc aws-sdk --version “= 1.33”  
ERROR: Error installing aws-sdk:  
mini\_portile2 requires Ruby version \>= 1.9.2.  
Error executing gem install --no-ri --no-rdoc aws-sdk --version “= 1.33”  
[root@opennebula install\_gems]#
