ruby-on-rails – libv8-3.16.14.3无法安装 – Rails 4.1.8
发布时间:2020-12-16 19:31:00 所属栏目:百科 来源:网络整理
导读:所以我有这个问题,其中libv8-3.16.14.3无法安装,即使它欺骗性地告诉你它确实安装. 所以问题的第一个迹象就是: 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'` succ
所以我有这个问题,其中libv8-3.16.14.3无法安装,即使它欺骗性地告诉你它确实安装.
所以问题的第一个迹象就是: 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. 在捆绑安装期间.所以我做了一些谷歌搜索,遇到this response运行时: gem install libv8 -v '3.16.14.3' -- --with-system-v8 Building native extensions with: '--with-system-v8' This could take a while... Successfully installed libv8-3.16.14.3 Parsing documentation for libv8-3.16.14.3 Done installing documentation for libv8 after 1 seconds 1 gem installed 引导您认为它有效.但再次运行bundle install并查看有问题的错误: 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. 整个跟踪日志可以在下面看到(由运行bundle install引起): Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/Adam/.rvm/rubies/ruby-2.1.5/bin/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.6 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Using compiler: g++ Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher ../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable] static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers); ^ 1 error generated. make[1]: *** [/Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1 make: *** [x64.release] Error 2 /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/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 '/Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist,but it was not found (Libv8::Location::Vendor::ArchiveNotFound) from /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `each' from /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `verify_installation!' from /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:in `install!' from extconf.rb:7:in `<main>' GYP_GENERATORS=make build/gyp/gyp --generator-output="out" build/all.gyp -Ibuild/standalone.gypi --depth=. -Dv8_target_arch=x64 -S.x64 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 CXX(target) /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o CXX(target) /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o CXX(target) /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o CXX(target) /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o CXX(target) /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o extconf failed,exit code 1 Gem files will remain installed in /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/gems/libv8-3.16.14.3 for inspection. Results logged to /Users/Adam/Dropbox/AisisGit/AisisPlatform/.bundle/gems/extensions/x86_64-darwin-14/2.1.0/libv8-3.16.14.3/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. 到底是怎么回事. 注意:我在mac上做这一切. 解决方法
我首先使用Homebrew来安装V8,这样才能工作:
$brew install v8 然后运行您在Google上找到的命令: $gem install libv8 -v '3.16.14.3' -- --with-system-v8 最后重新运行bundle install: $bundle install (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- 正则表达式 – 在CMake中将字符串的一部分转换为
- Rails 做 DNS 域名查询
- c# – 无法使用ExcelLibrary打印电子表格
- 如何在Flash Builder 4.5 Burrito中的ViewNaviga
- nxp lpc1850 外部flash算法 jlink下载配置 和 内
- XX教你玩 MiniPC (三)MK908之CPU RK3188启动 b
- cacti Error XML Hash version does not exist
- c# – 在WPF中绑定Setter属性的值
- actionscript-3 – 使用URLLoader时出现意外的Fl
- swift详解之九---------------自动引用计数、循环
热点阅读