在 Windows XP 上安装 watir-webdriver 时出现“编组数据太短”错误消息
我在 VMware Fusion 虚拟机 (3.1.2 332101) 中全新安装了 Windows XP(专业版,版本 2002,Service Pack 3)。 (主机是 MacBook Pro,Mac OS 10.6.7。)XP 安装有 512 MB RAM 并且已完全更新,但我将 Internet Explorer 保留在版本 6 上。
我已经安装了 Ruby 和 RubyGems:
C:\Documents and Settings\zeljko>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby187/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby187/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby187/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby187/lib/ruby/gems/1.8
- C:/Documents and Settings/zeljko/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
当我尝试安装 watir-webdriver gem 时,我收到此错误消息:
C:\Documents and Settings\zeljko>gem install watir-webdriver
ERROR: While executing gem ... (ArgumentError)
marshal data too short
我正在四处寻找,但尚未找到解决方案。
I have a clean installation of Windows XP (Professional, Version 2002, Service Pack 3) in VMware Fusion virtual machine (3.1.2 332101). (Host machine is MacBook Pro, Mac OS 10.6.7.) XP installation has 512 MB RAM and is fully updated, except I left Internet Explorer at version 6.
I have installed Ruby and RubyGems:
C:\Documents and Settings\zeljko>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby187/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby187/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby187/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby187/lib/ruby/gems/1.8
- C:/Documents and Settings/zeljko/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
When I try to install watir-webdriver gem, I get this error message:
C:\Documents and Settings\zeljko>gem install watir-webdriver
ERROR: While executing gem ... (ArgumentError)
marshal data too short
I am searching around, but did not find the solution yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
jarib 建议我应该删除
.gem
文件夹(C:\Documents and Settings\ zeljko\.gem
) 并解决了问题。jarib suggested I should delete
.gem
folder (C:\Documents and Settings\zeljko\.gem
) and it fixed the problem.如果问题仍然存在,
请重新安装所有 gem:
If the problem remains
Reinstall all the gems:
删除隐藏目录中的 .gem 文件夹。
Delete .gem folder in directory which is hidden..