Installing Gems on Shared Hosting service (like Dreamhost)


First, you need to setup your .bash_profile. If you haven't already done it and make a directory for your gems.

mkdir .gems
echo 'export GEM_HOME="$HOME/.gems"' >> .bash_profile
echo 'export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"' >> .bash_profile
echo 'export PATH="$HOME/.gems/bin:$PATH"' >> .bash_profile

Of course, you could edit your .bash_profile using pico, nano or vi if you prefer. Then be sure to load all that:

source .bash_profile

If all goes well, you should be able to then install your own gems, update ones that are already there, and generally be a happier person. For example, you could update your rails gem with

gem update rails --include-dependencies

All of your personally-installed gems will end up in ~/.gems for you to use.
(from dreamhost wiki)

Comments

Popular posts from this blog

Impossible