In response to the following error:
ruby: no such file to load -- ubygems (LoadError)
Unset the RUBYOPT environment variable in order to disable gems for the rest of the session
export RUBYOPT=''
Then install gems.