therubyracer compile error OSX 10.7 Lion
I ran into some erros while compiling the therubyracer gem after an update to Mac OSX Lion. It threw errors like this:
Most of the solutions on Github and other blogs didn’t work for me. Eventually I fixed it with the following commands:
Install latest v8 library through Homebrew
Install libv8 gem
Symlink gcc binary to gcc-4.2 binary:
(this was probably the real solution)