安装/捆绑宝石UNF_EXT -V'0.0.6'[英] Error installing/bundling gem unf_ext -v '0.0.6'

本文是小编为大家收集整理的关于安装/捆绑宝石UNF_EXT -V'0.0.6'的处理方法,想解了安装/捆绑宝石UNF_EXT -V'0.0.6'的问题怎么解决?安装/捆绑宝石UNF_EXT -V'0.0.6'问题的解决办法?那么可以参考本文帮助大家快速定位并解决问题。

问题描述

我正在尝试捆绑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,但我仍然得到相同的错误.

更新:答案
Apple Developer 下载commandlinetoolsosx10.10forxcode6.2.dmg无需卸载任何东西.

推荐答案

是新Xcode工具中的错误.在我的情况下它破坏了eventmachine.查看缺少C ++标题<__ debug>之后更新OSX命令行Tools 6.3 具有伪文件和重新安装链接的答案.我降级为6.2,问题走了.

其他推荐答案

这样做的是我的工作:

echo '#define _LIBCPP_ASSERT(x, m) ((void)0)' | sudo tee -a /Library/Developer/CommandLineTools/usr/include/c++/v1/__debug > /dev/null
然后再次运行bundle.

,由于这仅意味着临时修复,直到Apple释放修补程序,删除新创建的文件:

sudo rm /Library/Developer/CommandLineTools/usr/include/c++/v1/__debug

本文地址:https://www.itbaoku.cn/post/786595.html