Skip to content

Instantly share code, notes, and snippets.

@crofty
Created November 3, 2009 15:31
Show Gist options
  • Save crofty/225118 to your computer and use it in GitHub Desktop.
Save crofty/225118 to your computer and use it in GitHub Desktop.
jruby setup on slicehost
sudo vi /etc/apt/sources.list
# Add multiverse to the end of each of the strings
sudo apt-get update
sudo apt-get install sun-java6-jdk
java -version
#java version "1.6.0_06"
#Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
#Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
sudo apt-get install ant
wget http://dist.codehaus.org/jruby/jruby-src-1.1.5.tar.gz
tar -xvf ruby-src-1.1.5.tar.gz
sudo mv jruby-1.1.5/ /usr/local/lib/jruby
ant clean jar
vi ~your_username/.bashrc
JRUBY_HOME=/usr/local/lib/jruby
PATH=$PATH:$JRUBY_HOME/bin
source ~yourusername/.bashrc
jruby -v
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2009-11-03 rev 6586) [amd64-java]
## Refs:
http://jdwyah.blogspot.com/2008/11/ubuntu-slicehost-sun-java-apt-get.html
http://dermological.blogspot.com/2007/02/installing-jruby-on-ubuntu.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment