Skip to content

JRuby Installation Notes

nukeproof edited this page May 15, 2015 · 1 revision

Installation Notes for JRuby

  1. Oanda_API requires ruby 2.0 or higher, however the gem command (as of v2.4.7) running in jruby cannot install gems in ruby 2.0 mode (JRUBY_OPTS="--2.0").

  2. To install, set ruby mode to 1.9:

    >export JRUBY_OPTS="--1.9"
    
  3. Use the gem command's force option to tell gem to install the oanda_api gem while running in ruby 1.9 mode, to override the gem's requirement for ruby 2.0 or higher.

    >gem install oanda_api --force
    
  4. Make sure to set the ruby mode back to 2.0 when actually using the oanda_api gem.

Clone this wiki locally