2012-02-07 224 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