CentOS6.7에서 gem 설치 오류가 발생했습니다. gcc -version
을 사용하면 gcc의 버전이 4.4.7임을 보여줍니다. 여기Error gem CentOS6.7에서 libv8을 설치하십시오.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb creating Makefile Compiling v8 for ia32 Using python 2.6.6 Using compiler: /usr/bin/c++ (GCC version 1.5.0) Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in make_flags': undefined method include?' for nil:NilClass (NoMethodError) from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:56:in block in build_libv8!' from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:49:in chdir' from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/builder.rb:49:in build_libv8!' from /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/libv8-3.16.14.7/ext/libv8/location.rb:24:in install!' from extconf.rb:7:in '