gpt4 book ai didi

ruby-on-rails - 安装/bundle gem unf_ext -v '0.0.6' 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 06:48:54 25 4
gpt4 key购买 nike

我正在尝试 bundle intall 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 --systembrew install coreutils 但我仍然遇到同样的错误。

更新:回答
Apple Developer 下载并安装 commandlinetoolsosx10.10forxcode6.2.dmg .无需卸载任何东西。

最佳答案

这是新的 xcode 工具中的一个错误。就我而言,它破坏了 eventmachine。参见 Missing C++ header <__debug> after updating OSX Command Line Tools 6.3有关虚拟文件和重新安装链接的答案。我降级到 6.2,问题消失了。

关于ruby-on-rails - 安装/bundle gem unf_ext -v '0.0.6' 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29550738/

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