You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nukeproof edited this page May 15, 2015
·
1 revision
Installation Notes for JRuby
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").
To install, set ruby mode to 1.9:
>export JRUBY_OPTS="--1.9"
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
Make sure to set the ruby mode back to 2.0 when actually using the oanda_api gem.