Last Updated: February 25, 2016
·
543
· dinks

V8 compilation fails for Rails on Maverick

This is because of the gcc incompatibility.

Goto the directory which caused the problem

cd .rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/lib/libv8/build/v8/

check the gcc available. You might have gcc-4.2 or gcc-4.4 . Make sure you have scons.

If not install it using brew

brew install scons

Then install using

CC=gcc-4.4 CXX=g++-4.4 scons arch=x64