我们正在使用ruby和Watir进行自动化工作,但最近我们开始面临一个新问题。我们无法在新机器上安装Watir。 我们安装了ruby 186_27_rc2,然后更新了宝石。目前'gem-v'显示安装了1.3.7。 但是当我们运行“宝石安装的Watir”,我们得到错误无法在windows上安装Watir
C:\>gem -v
1.3.7
C:\>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
nmake
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2 xg- -G6 -c -Tcwin32/api.c
‘cl’ is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: ‘C:\WINDOWS\system32\cmd.exe’ : return code ’0×1′
Stop.
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4. 8 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/gem_make.out
问候 因德尔
没有团队,只是社区。 – mauris 2011-02-07 06:30:15