Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded the mac version of jruby. After installing it doesn't show up in the path. I'm new to mac and don't know where it is installed.

I'm running Mac OS 10.6.8.

share|improve this question
up vote 4 down vote accepted

JRuby should automatically be available as jruby on your command line. Eventually restart your Terminal.

Its framework is installed to:

/Library/Frameworks/JRuby.framework

Therefore, its binary is in:

/Library/Frameworks/JRuby.framework/Versions/Current/bin/jruby

If it doesn't work, manually add the following to your PATH, for example in ~/.bash_profile or .profile, whatever you use):

export PATH=$PATH:/Library/Frameworks/JRuby.framework/Versions/Current/bin
share|improve this answer
    
Thanks this fixes it. the installer had automatically created the .profile file but my zshrc didn't source it. – nikhil May 11 '12 at 6:18
    
This is still an issue in jruby 1.7.4. – Joshua Olson Sep 15 '13 at 23:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .