Friday, December 05, 2008

Error Updating RubyGems

If you get the following error:
undefined local variable or method `remote_gemspecs’

Then run:
sudo gem install rubygems-update
sudo gem update

Set JAVA_HOME on Mac OSX

If you want to install the rjb Ruby Gem, you will need to set the JAVA_HOME environment variable.

Add the following line to ~/.login or /etc/profile and restart your terminal.

setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home