捆绑安装时出现致命错误(安装libv8时)。[英] fatal error while bundle install (while installing libv8)

本文是小编为大家收集整理的关于捆绑安装时出现致命错误(安装libv8时)。的处理方法,想解了捆绑安装时出现致命错误(安装libv8时)。的问题怎么解决?捆绑安装时出现致命错误(安装libv8时)。问题的解决办法?那么可以参考本文帮助大家快速定位并解决问题。

问题描述

我在 windows7(32 位)上工作,安装包时出现错误;

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! 

所以我无法完成"捆绑安装".

解决方案

安装ActivePython 2.7.2.5,然后运行:

gem install libv8 --version 3.11.8.0

在windows下安装libv8,最新版本3.11.8.3不能在windows下运行,但是3.11.8.0可以在windows 7下运行.

本文地址:https://www.itbaoku.cn/post/786726.html