我正在尝试将Gems从本地gem存储库安装到Jruby 9.1.12.0中,而我正在卡在Watir上,这几乎是我尝试过的第一个。
我在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 :(得分:0)
我现在就开始工作了。从错误消息中可以明显看出“Make”未正确定位。我在路径中添加了正确的目录,并正确安装了Watir。