Oracle Baremetal Cloud Service (BMC) has a Ruby SDK. In this port I describe the steps to install this SDK on Oracle Linux 6.  For these instructions I used an Oracle Linux Vagrant Box.



The BMC Ruby SDK gem requires at least version 2.2 of Ruby. As Oracle Linux 6 by default provides Ruby 1.8.7, I'll use a more recent version of Ruby from the Software Collection Library. First I'll enable the appropriate repo on the Oracle Linux yum server to install scl-utils and various rh-ruby23 packages.


sudo yum -y install yum-utils
sudo yum-config-manager --enable public_ol6_software_collections
sudo yum install gcc-c++ scl-utils make rh-ruby23 rh-ruby23-ruby-devel rh-ruby23-rubygems
scl enable rh-ruby23 -- bash


The last command enables Ruby 2.3 environment, separate from any other existing Ruby environments on the OS.  I can verify this:


$ ruby -v

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-gnu]


Now I can install the oraclebmc gem


gem install oraclebmc