Rubygems execution error
When I am trying to use rubygems on Ubuntu 7.10 I took this error:
"rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- sources (LoadError)"
This error occurs when GEM_HOME system variable is unset. To solve that first check your gems directory:
# locale will find occurrences of gems on the system # look for the one that points to gems home directory locate gems
The default path for rubygems ( ruby version 1.8 ) is “/var/lib/gems/1.8”.
So now create the GEM_HOME variable:
# export GEM_HOME="path_to_gems" export GEM_HOME="/var/lib/gems/1.8/"
And rubygems will work well.
Filed under: errors | Leave a Comment
Tags: gems, rails, ruby, rubygems, rubyonrails