As you can see below, libv8 installs fine, but therubyracer doesn\'t. I\'m using Mac 10.7.4.
~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1> gem install lib
For an older project I had to used the 0.10.1 version of rubyracer on mavericks (bootstrap depends on it)
So I had to use an older version of gcc
edit your .zshrc or .bashrc
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
be sure that you have uninstalled all older versions of libv8
gem uninstall libv8
install your version of therubyracer
gem install therubyracer -v=0.10.1