Skip to content

Instantly share code, notes, and snippets.

@jxson
Created October 28, 2010 00:26
Show Gist options
  • Save jxson/650312 to your computer and use it in GitHub Desktop.
Save jxson/650312 to your computer and use it in GitHub Desktop.
I was running into issues with the rjb gem on osx snow leopard and had to do this dance
# I was getting this err out of the blue: [BUG] cross-thread violation on rb_gc()
# that's bad news... Here is how I fixed it:
curl -o java.1.5.0-leopard.tar.gz http://ituploads.com/software-downloads/apple/java.1.5.0-leopard.tar.gz
tar -xvzf java.1.5.0-leopard.tar.gz
sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard
cd /System/Library/Frameworks/JavaVM.framework/Versions/
sudo rm 1.5.0
sudo ln -s 1.5.0-leopard 1.5.0
sudo rm 1.5
sudo ln -s 1.5.0 1.5
open "/Applications/Utilities/Java Preferences.app" # make sure Java 5.0 32 bit is used by default
sudo JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 gem install rjb -v 1.2.5
# jump into irb and require 'rjb' #=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment