gpt4 book ai didi

osx-yosemite - 无法在优胜美地的干净安装和Ruby的干净版本上安装therubyracer

转载 作者:行者123 更新时间:2023-12-04 13:13:25 26 4
gpt4 key购买 nike

有很多人遇到类似的问题,过去我在其他计算机上曾经是其中之一,而且那里的解决方案似乎都不起作用-与其他遇到类似问题的人相比,我似乎也有不同的错误:

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

我的gemfile中包含 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中还有更多讨论。

关于osx-yosemite - 无法在优胜美地的干净安装和Ruby的干净版本上安装therubyracer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29586857/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com