Skip to content
Martin Prout edited this page Nov 19, 2013 · 16 revisions

Because Ruby-Processing uses a JARed copy of JRuby it will only look for Gems that came installed in that JAR.

To use other gems the most secure way is to:-

  • System install JRuby.
  • Install the ruby-processing using the installed jruby (sudo prefix may be required) jruby -S gem install ruby-processing-2.1.0.gem
  • Install all the gems you want use with jruby or ruby-processing the same way jruby -S gem install some_gem (where some gem is a remote rubygem gem)

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..

Clone this wiki locally