JRuby and Matz Ruby on the same machine?

Is it possible to run jRuby and native ruby ​​on the same computer?

For example, installing a rake or gem under both of them finds Matz Ruby extensions /usr/bin/gemor/usr/bin/rake

MRI stones and jruby gemstones mix.

Is there any experience in this constellation?

+3
source share
2 answers

Check out the RVM (Ruby Version Manager) , which

... is a command line tool that allows us to easily install, manage, and work with multiple ruby ​​environments from translators to gem sets.

+6
source

rvm Unix pik Windows - .

- . JRuby , , JRuby bin PATH. jruby PATH, , gem rake, C-Ruby, jruby, :

jruby -S gem  -- to run gem with JRuby
jruby -S rake -- to run rake with JRuby
jruby -S spec -- to run rspec with JRuby

jgem, jrake launcher , .

+3

Source: https://habr.com/ru/post/1740741/


All Articles