Skip to content

Instantly share code, notes, and snippets.

@facundofarias
Created September 5, 2014 08:24
Show Gist options
  • Save facundofarias/178cc64c89a874171649 to your computer and use it in GitHub Desktop.
Save facundofarias/178cc64c89a874171649 to your computer and use it in GitHub Desktop.
Installing jRuby on OSX

Assuming you already have brew installed, then:

  1. sudo brew install jruby. More Info: https://github.com/rubygame/rubygame/wiki/JRuby-Install-Guide

  2. For Eclipse we will need: Install Ruby (DLTK) 5.0 Kepler. More Info: http://marketplace.eclipse.org/content/ruby-dltk#.VAhLwGS1aaJ

  3. Test if jRuby it's working properly from the command line:

    jruby -S gem list

    jruby -e "puts [1,2,3].minmax"

  4. then, configure jRuby as interpreter (/usr/local/bin/jruby) on Eclipse.

  5. Install dependencies from command line: sudo jruby -S gem install [ANY_SUPPORTED_GEM]

@Beyarz
Copy link

Beyarz commented Apr 2, 2019

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.

@rdp
Copy link

rdp commented Mar 12, 2020

brew doesn't require sudo :)

@jcollum
Copy link

jcollum commented Feb 1, 2021

And in fact it won't allow you to run with sudo anymore. This gist is outdated.

@rememberlenny
Copy link

And in fact it won't allow you to run with sudo anymore. This gist is outdated.

Important point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment