我在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!
所以我无法完成“捆绑安装”。
答案 0 :(得分:6)
安装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中运行。
答案 1 :(得分:5)
在Windows 7上,我用ruby193安装了python27,我在PATH变量中添加了python的文件夹,我在控制台中编写了gem install libv8,并成功安装了libv8
答案 2 :(得分:0)
你需要安装python,因为libv8似乎依赖于Python,你可以看到in project stats
答案 3 :(得分:0)
我在github上打开了 issue 29 ,我了解到windows上不支持libv8。所以没有解决错误的方法。只是你可以改变你的平台。