bundle安装时出现致命错误(安装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中工作。

在windows 7上,使用ruby193我安装了python27,我将python的文件夹添加到PATH变量中,我在控制台中编写了gem安装libv8,libv8成功安装

您需要安装python,因为libv8似乎依赖于python,正如您在项目统计

中看到的那样

我在github上打开了第29期,了解到libv8在windows上不受支持。因此没有解决错误的方法。只是你可以改变你的平台。

最新更新