Assuming you already have brew installed, then:
-
sudo brew install jruby. More Info: https://github.com/rubygame/rubygame/wiki/JRuby-Install-Guide
-
For Eclipse we will need: Install Ruby (DLTK) 5.0 Kepler. More Info: http://marketplace.eclipse.org/content/ruby-dltk#.VAhLwGS1aaJ
-
Test if jRuby it's working properly from the command line:
jruby -S gem list
jruby -e "puts [1,2,3].minmax"
-
then, configure jRuby as interpreter (/usr/local/bin/jruby) on Eclipse.
-
Install dependencies from command line: sudo jruby -S gem install [ANY_SUPPORTED_GEM]
Error: Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.