2017-07-17 39 views
1

我正嘗試從本地gem資源庫中安裝gem到Jruby 9.1.12.0,並且我陷入Watir這幾乎是我嘗試的第一個。無法在Jruby上安裝Watir 9.1.12.0 - Windows 7

我在Windows 7上運行帶有JDK 1.8.0_131

我得到如下:

Error installing watir: 
ERROR: Failed to build gem native extension 

它看起來好像錯誤消息的其餘部分被抱怨FFI-1.9.18我恐怕我不能發佈確切的錯誤信息,因爲它在沒有啓用互聯網的虛擬機內。

更新:完整的錯誤信息:

C:\Ruby\gem>jruby -S gem install watir 
Building native extensions. This could take a while... 
C:/jruby-9.1.12.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:58: warning: Tempfile#unlink or delete called on open file 
; ignoring 
ERROR: Error installing watir: 
    ERROR: Failed to build gem native extension. 

current directory:  C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c 
C:/jruby-9.1.12.0/bin/jruby.exe -r ./siteconf20170718-2540-6mqxiv.rb extconf.rb 

current directory:  C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c 
make "DESTDIR=" clean 
'make' is not recognized as an internal or external command, 
operable program or batch file. 

current directory: C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18/ext/ffi_c 
make "DESTDIR=" 
'make' is not recognized as an internal or external command, 
operable program or batch file. 

make failed, exit code 1 

Gem files will remain installed in C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/ffi-1.9.18 for inspection. 
Results logged to C:/jruby-9.1.12.0/lib/ruby/gems/shared/extensions/universal- java-1.8/2.3.0/ffi-1.9.18/gem_make.out 
+0

良好的第一次嘗試自我回答的問題! – GhostCat

回答

0

我現在這個工作。從錯誤消息中可以明顯看出「Make」的位置不正確。我將正確的目錄添加到路徑,Watir已正確安裝。