Gem question

If I were to install Ruby and JRuby on the same machine, would they have
the
same gems? Or would running gem in Ruby point to a different
list/directory
tree than when I run gem with JRuby?

Regards,
Eric MacAdie
http://www.MacAdie.net

We use RVM to “seperate” the Ruby and JRuby environments.
RVM will install the gems seperately for each Ruby and JRuby.
We then use the file .rvmrc in the specific project to specify which
Ruby to use. This prevents us from making mistakes.

see http://rvm.beginrescueend.com

I am using
$ cat $HOME/.gemrc
install: --user-install
update: --user-install

which separates ruby and jruby nicely.

  • Kristian

+1

RVM is a must. Really, it is.

On Tue, 2011-02-15 at 07:06 +0100, Hock Yeoh wrote:

We use RVM to “seperate” the Ruby and JRuby environments.
RVM will install the gems seperately for each Ruby and JRuby.
We then use the file .rvmrc in the specific project to specify which
Ruby to use. This prevents us from making mistakes.

see http://rvm.beginrescueend.com


Nick G.
Developer @ Media Service Provider
+44 207 729 4797

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs