CentOS6.7上的错误gem install libv8

时间:2016-07-02 14:37:19

标签: gcc rubygems bundle centos6

我在CentOS6.7中遇到gem安装错误 但是当我使用gcc -version时,它显示gcc的版本是4.4.7。

以下是错误信息:

  

Gem :: Ext :: BuildError:错误:无法构建gem原生扩展。

     

/ usr / local / bin / ruby​​ extconf.rb创建Makefile为ia32编译v8   使用python 2.6.6使用编译器:/ usr / bin / c ++(GCC版本   1.5.0)无法找到v8正式支持的编译器。建议使用GCC v4.4或更高版本   /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in   make_flags&#39 ;:未定义的方法包括?'为零:NilClass   (NoMethodError)           来自/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:56:in   在build_libv8中阻止!'           来自/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:49:in   CHDIR'           来自/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:49:in   build_libv8&#39!;           来自/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/location.rb:24:in   安装&#39!;           来自extconf.rb:7:in'

1 个答案:

答案 0 :(得分:0)

libv8 maintainer here.

Could you please try again after updating libv8 to the latest 3.16 version available?

If you continue receiving an error, please consider opening an issue with more info about your system and the gcc --version output of your compiler in libv8's issue tracker: https://github.com/cowboyd/libv8/issues

As a side note, you should consider asking the maintainers of a project directly first, through their issue tracker for example, before shooting a question in SO. Your question probably would have remained unanswered had I not been by chance looking for recent questions about libv8 here.