forked from jashkenas/ruby-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Using Rubygems
Martin Prout edited this page Jul 3, 2013
·
14 revisions
Because Ruby-Processing uses a JARed copy of JRuby it will only look for Gems that came installed in that JAR.
It would be nice to use the power of Rubygems, so let’s tell our Sketch where to find them.
First, install JRuby itself, then install all gems that you need with JRuby:
> sudo jruby -S gem install gem_name
Assuming that you have put JRuby in /usr/local/jruby all gems will install to /usr/local/jruby/lib/ruby/gems/1.9
To run the sketch use the --jruby flag to use the local version of JRuby, to be sure you can access the installed gems…
See samples/external_library/ruby_gem