Ruby: Cannot Install Watir Gem On Windows

后端 未结 5 1752
囚心锁ツ
囚心锁ツ 2021-01-06 05:42

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:

相关标签:
5条回答
  • 2021-01-06 05:52

    Execute Below command and its works

    gem install watir --platform=mswin32

    0 讨论(0)
  • 2021-01-06 05:53

    Installed devkit and after calling the bat file on Windows 7 from a cmd it fixed this issue. Using Ruby 1.9.1

    0 讨论(0)
  • 2021-01-06 06:08

    Turns out I needed to install the Ruby Development files. =/

    0 讨论(0)
  • 2021-01-06 06:08

    I also had to install nokogiri to get Watir to install successfully on windows, after installing DevKit. Use: gem install nokogiri

    0 讨论(0)
  • 2021-01-06 06:14

    I would recommend you install the RubyInstaller Development Kit as documented here

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

    0 讨论(0)
提交回复
热议问题