I’m trying to setup a second ruby install in my home directory (a different version of ruby for testing). I’ve compiled ruby into ~/bin/ and everything is working until I try to install rubygems.
I have GEM_HOME set to ~/gems directory and GEM_PATH set to the same. Then I try to install rubygems with
~/bin/ruby setup.rb
The installation appears to succeed but ruby can’t find rubygems after the install.
$~/bin/irb irb(main):001:0> require 'rubygems' LoadError: no such file to load -- rubygems from (irb):1:in `require' from (irb):1
Anyone have any idea why ruby can’t find rubygems?
In addition to setting
GEM_HOMEyou need to runconfigwith your path. Here are the steps from rubygems.org.