Lots of Gems

Posted by Matt Williams

This isn't much of a tip, per se, but it's something I ran into today.

The way to having multiple rubygem repositories is to set the GEM_PATH environmental variable. This will allow you to use gems from more than one location -- something useful on shared servers.

Next, to figure out how to specify the version of rubygems you're using -- I've tried GEM_HOME and RUBY_LIB and my PATH, but it's not working properly on the shared host. More once I figure that one out.

Comments

Leave a response

  1. raggiFebruary 09, 2008 @ 04:21 PM
    ra66i@host:~$ env | grep _HOME GEM_HOME=/home/ra66i/lib/ruby/gems ra66i@host:~$ ls src/ git-1.5.3.6.tar.gz install_rubygems.sh install_git.sh rubygems-0.9.5.tgz ra66i@host:~$ cat src/install_rubygems.sh #!/bin/sh tar zxf rubygems*.tgz cd rubygems* ruby setup.rb --no-rdoc --no-ri --prefix=$HOME and if you need multiple gem installs, use RUBYLIB too. reminded me that that rubygems needs updating on that server over there ;D