Running Xcode 4.2 on OS X will cause issues with RVM. Here are details of the issues and fix.The process takes no more than 5 minutes in total.
Issue
gem install bundler
/Users/me/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Bus Error
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.1.0]
Abort trap: 6
Fix
- Install Xcode 4.2
- Install the gcc standalone compiler from https://github.com/kennethreitz/osx-gcc-installer (which replaces Xcode)
- Add “export CC=gcc-4.2″ to your ~/.bash_profile or equivalent (don’t forget to reload it)
- Run “rvm implode” then re-install rvm http://beginrescueend.com/