2012-02-07 146 views
5

我在windows7(32位)上工作,并且在安装捆绑软件时出现错误;捆绑安装时发生致命错误(安装libv8时)

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

你需要安装Python,因为libv8似乎依赖于Python中,你可以看到in project stats

+0

,但我的项目是用与Ruby on Rails的。我需要Python吗? – yagmurdursun 2012-02-07 12:29:18

+0

如果项目的一个依赖项用另一种语言编写,则需要对它的支持,在这种情况下是Python。这通常不是问题,因为Python安装在大多数unix口味上。 – 2012-02-07 12:31:08

+0

谢谢Paulo Paulo我正在尝试;) – yagmurdursun 2012-02-07 12:38:44

0

我在GitHub上打开 issue 29,我了解到,libv8不支持Windows。所以没有解决方案的错误。只要你可以改变你的平台。

5

在Windows 7上,与ruby193我安装python27,我加入到PATH变量的python的文件夹中,我写了创业板安装libv8控制台和libv8被成功地安装

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