I'm already puzzling over this. I followed the suggestions in several related posts, but to no avail.
I start with a new installation of Mountain Lion, install the command line tools, and successfully install Ruby 1.8.7 based on a few other messages that I found to install gcc-4.2 via Homebrew and add a symlink to / usr / bin / gcc -4.2.
Now, however, I cannot successfully install libv8. The error below is how far I retreated from the existing proposals.
Any additional input?
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/Eric/.rbenv/versions/1.8.7-p352/bin/ruby extconf.rb creating Makefile Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Traceback (most recent call last): File "build/gyp/gyp", line 18, in <module> sys.exit(gyp.main(sys.argv[1:])) File "build/gyp/pylib/gyp/__init__.py", line 480, in main generator.GenerateOutput(flat_list, targets, data, params) File "build/gyp/pylib/gyp/generator/make.py", line 2085, in GenerateOutput part_of_all=qualified_target in needed_targets) File "build/gyp/pylib/gyp/generator/make.py", line 756, in Write self.xcode_settings, self.Absolutify, self.Pchify)) File "build/gyp/pylib/gyp/generator/make.py", line 1132, in WriteSources cflags = self.xcode_settings.GetCflags(configname) File "build/gyp/pylib/gyp/xcode_emulation.py", line 258, in GetCflags sdk_root = self._SdkPath() File "build/gyp/pylib/gyp/xcode_emulation.py", line 247, in _SdkPath return os.path.join(self._GetSdkBaseDir(), '%s.sdk' % sdk_root) File "build/gyp/pylib/gyp/xcode_emulation.py", line 233, in _GetSdkBaseDir raise Exception('Error %d running xcode-select' % job.returncode) Exception: Error 2 running xcode-select make: *** [out/Makefile.x64] Error 1 Using compiler: g++ GYP_GENERATORS=make \ build/gyp/gyp
Eric M.
source share