Same idea as the Groovy and Grails posting, most of the steps are the same but here they are.
Download JRuby from http://www.jruby.org/, as of writing this the latest release is 1.6.0. I'm downloading the tar file, I believe it the same as the zip file just different format used to compress the files.
1 2 | |
Now lets move it to our /usr/share folder and make the needed symbolic link.
1 2 3 | |
Last step is to update your .profile file within your home folder. Just add this to the top,
1 2 | |
Close all Terminals and reopen one. To test to see if everything is setup right, run this,
1 2 | |
To update just download the new file, move it to /usr/share folder and update the symbolic link like this,
1 2 3 | |
Something to keep in mind when dealing with JRuby, it comes with a JRuby version of Gem which will be picked over the default Ruby Gem due to the paths. If you need to work with the Ruby Gem use the full path, /usr/bin/gem, like so "/usr/bin/gem update" to run the update.
If you have any questions or comments please post, also any suggestions on improving this are welcome.