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 Linux:
The code below is of course correct
$ gem uninstall libv8
$ gem install therubyracer
But sometimes it does't help because you haven't program make. AT FIRST you need install make. To do this, run:
make
sudo apt-get install build-essential
And only after that:
gem install therubyracer