Gem unf_ext未能构建gem原生扩展 [英] Gem unf_ext failed to build gem native extension

查看:287
本文介绍了Gem unf_ext未能构建gem原生扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

env => Mac。 OS Yosemite。

我有一个项目使用ruby 2.1.3。
但是当我捆绑安装时,有一个我无法修复的错误。
gem unf_ext有问题

这是我的终端消息:

  $ gem install unf_ext -v'0.0.6'
构建原生扩展。这可能需要一段时间...
错误:安装unf_ext时出错:
错误:无法构建gem本机扩展。

/Users/vincent/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb
在-lstdc ++中检查main()...是
检查ruby / encoding.h ...是
创建Makefile

makeDESTDIR =clean
$ b $ makeDESTDIR =
编译unf .cc
从unf.cc:1包含的文件中:
从./unf/normalizer.hh:4包含的文件中:
从/ Library / Developer / CommandLineTools / usr包含的文件中/bin/../include/c++/v1/vector:265:
从/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__bit_reference:15包含的文件中:
从/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628包含的文件中:
在/ 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找到
#include< __ debug>
^
1产生的错误。
make:*** [unf.o]错误1

失败,退出代码2

Gem文件将保持安装在/ Users / vincent /中。 rvm / gems / ruby​​-2.1.3 / gems / unf_ext-0.0.6进行检查。
记录到/Users/vincent/.rvm/gems/ruby-2.1.3/extensions/x86_64-darwin-14/2.1.0-static/unf_ext-0.0.6/gem_make.out
的结果

我尝试brew update和xcode选择安装
,但仍无法使用。
任何建议?

解决方案

这是新的xcode工具中的一个错误。在我的情况下,它打破了事件机器。请参阅缺少C ++头文件< __ debug>在更新OSX命令行工具6.3之后以查找含有虚拟文件和重新安装链接的答案。我降级到6.2,问题就消失了。

来源:错误安装/捆绑gem unf_ext -v'0.0.6'


env => Mac. OS Yosemite.

I got a project use ruby 2.1.3 . But when I bundle install, there's an error I can't fix. the gem unf_ext have problem

here's my terminal message:

$ gem install unf_ext -v '0.0.6'
Building native extensions.  This could take a while...
ERROR:  Error installing unf_ext:
ERROR: Failed to build gem native extension.

/Users/vincent/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb
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 files will remain installed in /Users/vincent/.rvm/gems/ruby-2.1.3/gems/unf_ext-0.0.6 for inspection.
Results logged to /Users/vincent/.rvm/gems/ruby-2.1.3/extensions/x86_64-darwin-14/2.1.0-static/unf_ext-0.0.6/gem_make.out 

I try brew update and xcode select install but still not work. Any suggestion?

解决方案

It's a bug in the new xcode tools. It broke eventmachine in my case. See Missing C++ header <__debug> after updating OSX Command Line Tools 6.3 for answers with dummy files and reinstallation links. I downgraded to 6.2 and the problem went away.

Source: Error installing/bundling gem unf_ext -v '0.0.6'

这篇关于Gem unf_ext未能构建gem原生扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆