本文介绍了Ruby:无法在 Windows 上安装 Watir Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Watir 的网站 说我需要 Ruby 1.8.6,我正在运行它.Windows 安装应该和 gem install watir 一样简单.但是当我运行它时,我得到了这个:

Watir's site says I need Ruby 1.8.6, which I'm running. And windows installation should be as simple as gem install watir. But when I run that, I get this:

C:\Users\Ryguy\Code>gem install watir
Building native extensions.  This could take a while...
ERROR:  Error installing watir:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
checking for strncpy_s()... no
creating Makefile

make
'make' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5 f
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/gem_make.out

我的 Ruby 版本: ruby​​ 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
我的 RubyGems 版本: 1.3.5

My Ruby Version: ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
My RubyGems Version: 1.3.5

推荐答案

我建议您按照 这里

安装完成后,Watir依赖项(win32-api)的编译过程就会安装成功.

Once you've installed it, the compile process of Watir dependencies (win32-api) will install successfully.

这篇关于Ruby:无法在 Windows 上安装 Watir Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 08:21