Using jquery-rails 3.0.4
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
creating Makefile
sh: 1: patch: not found
sh: 1: patch: not found
sh: 1: patch: not found
sh: 1: patch: not found
Compiling v8 for ia32
Using python 2.7.3
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
make[1]: g++: Command not found
make[1]: *** [/var/lib/gems/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/allocation.o] Error 127
make: *** [ia32.release] Error 2
/var/lib/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:36:in block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/var/lib/gems/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound) <br /> from /var/lib/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in
each'
from /var/lib/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in verify_installation!' <br /> from /var/lib/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:in
install!'
from extconf.rb:7:in <main>' <br /> GYP_GENERATORS=make \ <br /> build/gyp/gyp --generator-output="out" build/all.gyp \ <br /> -Ibuild/standalone.gypi --depth=. \ <br /> -Dv8_target_arch=ia32 \ <br /> -S.ia32 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 <br /> make[1]: Entering directory
/var/lib/gems/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out'
CXX(target) /var/lib/gems/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/allocation.o
make[1]: Leaving directory `/var/lib/gems/1.9.1/gems/libv8-3.16.14.3/vendor/v8/out'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/libv8-3.16.14.3 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
geminstalllibv8-v'3.16.14.3',安装这个之前系统需要先安装libv8这个软件包
安装成功之后再bundleinstall试试
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。