SOLVED - Error installing gems inside VM - CentOS Linux release 7.3.1611 (Core)

Hi,

I am new to opennebula

I was trying to install opennebula inside a VM - CentOS Linux release 7.3.1611 (Core)

I followed this guide:
http://docs.opennebula.org/5.2/deployment/opennebula_installation/frontend_installation.html

However, I encounter this problem:

[root@localhost one]# /usr/share/one/install_gems
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. Ubuntu/Debian
  2. CentOS/RedHat/Scientific

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

  • gcc-c++
  • gcc
  • sqlite-devel
  • curl-devel
  • mysql-devel
  • openssl-devel
  • ruby-devel
  • make

Press enter to continue…

yum install gcc-c++ gcc sqlite-devel curl-devel mysql-devel openssl-devel ruby-devel make
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirror.upsi.edu.my
  • epel: ftp.riken.jp
  • extras: mirror.upsi.edu.my
  • updates: mirror.upsi.edu.my
    Package gcc-c+±4.8.5-11.el7.x86_64 already installed and latest version
    Package gcc-4.8.5-11.el7.x86_64 already installed and latest version
    Package sqlite-devel-3.7.17-8.el7.x86_64 already installed and latest version
    Package libcurl-devel-7.29.0-35.el7.centos.x86_64 already installed and latest version
    Package 1:mariadb-devel-5.5.52-1.el7.x86_64 already installed and latest version
    Package 1:openssl-devel-1.0.1e-60.el7.x86_64 already installed and latest version
    Package ruby-devel-2.0.0.648-29.el7.x86_64 already installed and latest version
    Package 1:make-3.82-23.el7.x86_64 already installed and latest version
    Nothing to do
    sh: bundler: command not found
    Error installing gems

Please help.
Thanks in advance

Hi,

not sure will it help, but here is the output from fresh install following same instructions:

[root@localhost ~]# /usr/share/one/install_gems

Fetching: bundler-1.14.4.gem (100%)
Did you know that maintaining and improving Bundler and RubyGems.org costs more than $25,000 USD every month? Help us keep the gem ecosystem free for everyone by joining the hundreds of companies and individuals who help cover these costs: https://ruby.to/support-bundler
Successfully installed bundler-1.14.4
Parsing documentation for bundler-1.14.4
Installing ri documentation for bundler-1.14.4
1 gem installed
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.

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

Distribution not detected. Make sure you manually install the
dependencies described in Building from Source from the OpenNebula
documentation.

Press enter to continue...

Thanks for your reply.
The problem is solved by adding PATH

export PATH=$PATH:/usr/local/bin