我正在尝试捆绑安装unf_ext -v '0.0.6'
但我不断收到此错误:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
checking for main() in -lstdc++... yes
checking for ruby/encoding.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling unf.cc
In file included from unf.cc:1:
In file included from ./unf/normalizer.hh:4:
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: *** [unf.o] Error 1
make failed, exit code 2
我已经跑了gem update --system
我已经brew install coreutils
但我仍然遇到同样的错误。
更新:回答
下载并安装commandlinetoolsosx10.10forxcode6.2.dmg
from 苹果开发者 https://developer.apple.com/downloads/index.action#。无需卸载任何东西。
这是新的 xcode 工具中的一个错误。在我的例子中,它破坏了 eventmachine。看更新 OSX 命令行工具 6.3 后缺少 C++ 标头 https://stackoverflow.com/questions/29529455/missing-c-header-debug-after-updating-osx-command-line-tools-6-3获取虚拟文件和重新安装链接的答案。我降级到 6.2,问题就消失了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)