在 Windows XP 上安装 watir-webdriver 时出现“编组数据太短”错误消息

发布于 2024-10-26 00:24:22 字数 1165 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

苍风燃霜 2024-11-02 00:24:22

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.

秋日私语 2024-11-02 00:24:22

如果问题仍然存在,

请重新安装所有 gem:

sudo gem list | cut -d" " -f1 > gem_list.txt

cat gem_list.txt | xargs sudo gem uninstall -aIx

cat gem_list.txt | xargs sudo gem instal

If the problem remains

Reinstall all the gems:

sudo gem list | cut -d" " -f1 > gem_list.txt

cat gem_list.txt | xargs sudo gem uninstall -aIx

cat gem_list.txt | xargs sudo gem instal
漫雪独思 2024-11-02 00:24:22

删除隐藏目录中的 .gem 文件夹。

Delete .gem folder in directory which is hidden..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文