本文介绍了捆绑安装时发生致命错误(安装libv8时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在windows7(32位)上工作,而我在安装bundle时遇到错误;
安装libv8(3.3。 10.4)与原生扩展不幸的是,发生了一个致命的错误。请通过https://github.com/carlhuda/bundler/issues向Bundler问题跟踪器报告此错误,以便我们解决它。谢谢!
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:在`build in block中的救援中':错误:无法构建gem本机扩展。 (Gem :: Installer :: ExtensionBuildError)
C:/Ruby192/bin/ruby.exe extconf.rb
*** extconf.rb失败***
无法由于某种原因创建Makefile,可能缺少必要的库和/或头文件。检查mkmf.log文件以获取更多详细信息。您可能需要配置选项。
提供的配置选项:
--with-opt-dir
--without-opt-dir
--with-opt-include
- -without-opt-include = $ {opt-dir} / include
--with-opt-lib
--without-opt-lib = $ {opt-dir} / lib
--with-make-prog
--without-make-prog
--srcdir =。
--curdir
--ruby = C:/ Ruby192 / bin / ruby
检查Python ...无法构建libv8:未找到Python!
所以我无法完成捆绑安装。
gem 安装libv8 --version 3.11.8.0
在Windows上安装libv8,最新版本为3.11.8.3无法在Windows中工作,但3.11.8.0可以在Windows 7中。
I work on windows7 (32-bit) and I get error that while bundle install;
Installing libv8 (3.3.10.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
C:/Ruby192/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby192/bin/ruby
Checking for Python... Unable to build libv8: Python not found!
So I can't complete "bundle install".
解决方案
Install ActivePython version 2.7.2.5, then run:
gem install libv8 --version 3.11.8.0
to install the libv8 in Windows, the latest version 3.11.8.3 can not work in windows, but 3.11.8.0 can in Windows 7.
这篇关于捆绑安装时发生致命错误(安装libv8时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!