无法在 Jruby 9.1.12.0 - Windows 7 上安装 Watir



我正在尝试将本地 gem 存储库中的 gem 安装到 Jruby 9.1.12.0 中,但我被困在 Watir 上,这几乎是我尝试的第一个。

我在带有JDK 1.8.0_131的Windows 7上运行

我得到以下信息:

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

看起来错误消息的其余部分正在抱怨 ffi-1.9.18 恐怕我无法发布确切的错误消息,因为它位于未启用互联网的 VM 中。

更新:完整的错误消息:

C:Rubygem>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

我现在开始工作了。从错误消息中可以明显看出"Make"位置不正确。我将正确的目录添加到路径中,并且 Watir 已正确安装。

相关内容

  • 没有找到相关文章

最新更新