软件包安装由于unf_ext(0.0.5)gem而失败 [英] Bundle install failed due to unf_ext (0.0.5) gem

查看:317
本文介绍了软件包安装由于unf_ext(0.0.5)gem而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了ruby 1.9.3p327&在centos 6.3上使用rvm的rails 3.2.8.但是,在为特定项目文件夹进行捆绑安装时,该过程在尝试安装gem unf_ext 0.0.5时会失败,并引发以下错误,

I have installed ruby 1.9.3p327 & rails 3.2.8 using rvm on centos 6.3. But while doing bundle install for a particular project folder, the process fails in between when it tries to install gem unf_ext 0.0.5 and throws following error,

安装带有本机扩展的unf_ext(0.0.5) Gem :: Installer :: ExtensionBuildError:错误:无法生成gem本机扩展.

Installing unf_ext (0.0.5) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/rradmin/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb -fPIC
checking for main() in -lstdc++... yes
checking for ruby/encoding.h... yes
creating Makefile

make
compiling unf.cc
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/vector:61,
from unf/normalizer.hh:4,
from unf.cc:1:
.....
....
...

宝石文件将保留安装在/home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5中以进行检查. 结果记录到/home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5/ext/unf_ext/gem_make.out

Gem files will remain installed in /home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5 for inspection. Results logged to /home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5/ext/unf_ext/gem_make.out

在安装unf_ext(0.0.5)时发生错误,并且Bundler无法 继续.确保gem install unf_ext -v '0.0.5'成功 捆绑之前.

An error occurred while installing unf_ext (0.0.5), and Bundler cannot continue. Make sure that gem install unf_ext -v '0.0.5' succeeds before bundling.

我也尝试如上所述分别安装unf_ext,但是出现了相同的错误. 我已经提到 https://github.com/cowboyd/therubyracer/issues/135 ,但仍然无法解决问题.请让我知道解决此问题的正确方法.

I also tried to install unf_ext separately as mentioned above, but got the same error. I have referred https://github.com/cowboyd/therubyracer/issues/135, but still not able to solve the problem. Please let me know proper way to solve this problem.

谢谢.

推荐答案

感谢Suman.但是我通过使用yum install gcc-g ++ libstdc ++-devel安装 libstdc ++-devel 解决了该问题.

Thanks Suman. But I resolved the issue by installing libstdc++-devel using yum install gcc-g++ libstdc++-devel.

这篇关于软件包安装由于unf_ext(0.0.5)gem而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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