Rubygems execution error

23Apr08

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.

Advertisements


No Responses Yet to “Rubygems execution error”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: