Error installing aws-sdk gem

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

Could you try installing:
aws-sdk (1.50.0)
mini_portile (0.6.1)

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

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.

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:

# 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.

Hi Javi, Daniel,

Thanks for your response. When installing OpenNebula from source, I always run the 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

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
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
  • epel: mirror.symnds.com
  • extras: mirrors.lga7.us.voxel.net
  • remi-safe: 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]#