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
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.
I am using
$ cat $HOME/.gemrc
install: --user-install
update: --user-install
which separates ruby and jruby nicely.
+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.
–
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs