osx-yosemite – 无法在干净安装Yosemite和干净版ruby上安装therubyracer

有很多人有类似的问题,我过去曾经在其他机器上遇到其中一个并且没有一个解决方案似乎有效 – 我似乎也有比其他有类似问题的人有不同的错误
Building native extensions.  This Could take a while...
ERROR:  Error installing therubyracer:
    ERROR: Failed to build gem native extension.

    /Users/username/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -r ./siteconf20150412-25981-y7cvt6.rb extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling accessor.cc
clang: warning: argument unused during compilation: '-rdynamic'
In file included from accessor.cc:1:
In file included from ./rr.h:6:
In file included from /Library/Developer/CommandLinetools/usr/bin/../include/c++/v1/vector:265:
In file included from /Library/Developer/CommandLinetools/usr/bin/../include/c++/v1/__bit_reference:15:
In file included from /Library/Developer/CommandLinetools/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Library/Developer/CommandLinetools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLinetools/usr/bin/../include/c++/v1/iterator:341:10: Fatal error: '__debug' file not found
#include <__debug>
         ^
1 error generated.
make: *** [accessor.o] Error 1

make Failed,exit code 2

Gem files will remain installed in /Users/ecnalyr/.rvm/gems/ruby-2.0.0-p353@canopy/gems/therubyracer-0.12.2 for inspection.
Results logged to /Users/ecnalyr/.rvm/gems/ruby-2.0.0-p353@canopy/extensions/x86_64-darwin-14/2.0.0/therubyracer-0.12.2/gem_make.out

运行时:

gem install therubyracer -v '0.12.2'

或者干脆

bundle install

我的宝石文件中包含了therubyracer.

我正在运行Yosemite 10.10.3,Ruby 2.0.0-p353,我已经卸载了所有内容并尝试了gem install libv8 – –with-system-v8解决方案经常遇到这类问题但是没有找到解析度.

解决方法

我能够通过重新安装 Command Line Tools for XCode 6.2(而不是XCode 6.3的那些)来解决这个问题.

Stack Overflow 29529455还有更多的讨论.

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...