Taken from thethemefoundry/forge#79:
brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42
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
brew uninstall v8
gem uninstall libv8
Now, depending on your needs, either gem install therubyracer
for the latest or bundle install
for your project.
vagrant@precise64:/cartodb-central$ gem uninstall libv8
Select gem to uninstall:
1. libv8-3.3.10.4-x86_64-linux
2. libv8-3.16.14.11-x86_64-linux
3. libv8-3.16.14.13-x86_64-linux
4. All versions
> 4
Successfully uninstalled libv8-3.3.10.4-x86_64-linux
Successfully uninstalled libv8-3.16.14.11-x86_64-linux
You have requested to uninstall the gem:
libv8-3.16.14.13-x86_64-linux
therubyracer-0.12.1 depends on libv8 (~> 3.16.14.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN] y
Successfully uninstalled libv8-3.16.14.13-x86_64-linux