-
Notifications
You must be signed in to change notification settings - Fork 94
Using Rubygems
Martin Prout edited this page Mar 16, 2015
·
16 revisions
- System install JRuby (use rvm if you must).
- Install the ruby-processing using the installed jruby (
sudo
prefix may be required on some systems)
jruby -S gem install ruby-processing # the jruby -S prefix may not always be required
- Install all the gems you want use with jruby or ruby-processing the same way
jruby -S gem install some_gem #some_gem is a remote rubygem, the jruby -S prefix may not always be required
When running the sketch use the local version of JRuby, to be sure that you can access the installed gems...
See samples/external_library/ruby_gem
An alternative way of using regular installed rubygems is to set the GEM_HOME
environmental variable but this may not work..
Or allow rvm/rbenv bundler to sort it out for you?
Another alternative, that allows of the use jruby-complete with rubygems, is to use the rpbundle gem, but it has not been tested with recent versions of ruby-processing