开发者社区> 问答> 正文

bundle install在Using jquery-rails 3.0.4报错?报错

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:ineach'
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:ininstall!'
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.


展开
收起
爱吃鱼的程序员 2020-06-14 21:55:29 398 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    geminstalllibv8-v'3.16.14.3',安装这个之前系统需要先安装libv8这个软件包

    安装成功之后再bundleinstall试试

    2020-06-14 21:55:46
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关课程

更多

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载