Troubles with JRuby and SoyLatte on OS X Snow Leopard
I was trying to install JRuby on a new install of OS X Snow Leopard today, but got this error when trying to run stuff like “jruby -S gem”:
Trace/BPT trap
I’m using SoyLatte for Java development on my machine, and was able to fix the JRuby error by switching back to the Java 1.6 with which Snow Leopard ships.
So what’s the quick fix — so we don’t have to debug JRuby/SoyLatte — in order to do Java development with SoyLatte, but use JRuby with OSX’s Java 1.6? Add this to the top of your “bin/jruby” file (wherever it lives):
export JAVA_HOME=/Library/Java/Home
やすい!