cowboyd/therubyracer — Issue #146: OS X Lion + therubyracer "g++-4.2: No such file or directory"
Author: JeanMertz
Created: 2012-03-06 08:28:29+00:00
State: open

I am trying to reinstall all my gems after doing a clean Lion install. However, I am running into this issue:

```
Using libv8 (3.3.10.4)
Installing therubyracer (0.9.10) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/Jean/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb
checking for main() in -lobjc... yes
creating Makefile

make
compiling rr.cpp
make: g++-4.2: No such file or directory
make: *** [rr.o] Error 1

Gem files will remain installed in /Users/Jean/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.10 for inspection.
Results logged to /Users/Jean/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.10/ext/v8/gem_make.out
An error occured while installing therubyracer (0.9.10), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.9.10'` succeeds before bundling.
```

I've read multiple issues on the qt project, the libv8 project and on this project, all related to OS X Lion, but looking through the parsed logs, it seems in those issues, gcc/g++ actually works, in my case, it simply won't work.

I did install the Xcode 4.2 command line tools, so things *should* be working as far as I know.

Any way to solve this issue?