2012-05-30 72 views
2

Windows 7(64位)上的Rally App SDK 2.0p環境安裝期間存在問題。我已經從rubyinstaller.org安裝了Ruby 1.8.7-p358,並設法安裝Rake Ruby gem。但我有問題安裝jslint-v8寶石。它依賴therubyracerlibv8需要使用Ruby DevKit構建的寶石。在安裝過程中,我得到以下錯誤:Windows7上jslint-v8 Ruby gem安裝問題64位

C:\ruby> gem install jslint-v8 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing jslint-v8: 
    ERROR: Failed to build gem native extension. 

    C:/ruby/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:/ruby/bin/ruby 
extconf.rb:13: uninitialized constant Gem (NameError) 
Checking for Python... 

Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/libv8-3.3.10.4 for inspection. 
Results logged to C:/ruby/lib/ruby/gems/1.8/gems/libv8-3.3.10.4/ext/libv8/gem_make.out 

有誰知道如何在Win7中正確安裝它? 謝謝!

回答

7

您嘗試安裝的gem取決於libv8 gem,它只不過是Google V8 JavaScript VM的封裝。

Windows沒有預編譯的libv8(就像Linux或OSX一樣),這意味着它需要從頭構建V8。

圍繞V8的構建過程中的代碼是不是很便攜,更何況編譯libv8你需要的Python安裝:-P

直到今天沒有人能夠遵循libv8預編譯上的說明Windows中,以下庫說明:

https://github.com/cowboyd/libv8

抱歉沒能爲您提供更好的響應。