Rubygems when you aren’t root

This gives the procedure

Basicaly, create a temporary install of rubygems, setting GEM_HOME to point to the user gem repository. This creates the basic repository which can then be accessed by the system rubygems installation by setting the shell variable GEM_PATH to point to it. GEM_PATH can also have a list of : seperated paths so that you can access the system gems as well as the private ones.

[code]
GEM_PATH=/usr/local/lib/ruby/gems/1.8:/home/jphuquoc/gems
export GEM_PATH
[/code]

You must be logged in to post a comment.