Friday, April 9, 2010

Watir: Install Ruby: How to Installed Ruby ?

  • Log in as administrator.
  • Download the One-Click Ruby Installer for Windows (v.1.8.6-26) from the Ruby One Click Installer Page .
    We recommend using the latest version of Ruby 1.8.6 with Watir 1.6.
    Watir's modal dialog support in Watir 1.5 required Ruby 1.8.2. This is no longer true and this feature now requires Ruby 1.8.6.
  • Run it (leave all choices at the default).
  • You have installed Ruby.
  • Installing Ruby 1.9.1


    Install the lastest 1.9.1 RubyInstaller and development kit from here: http://rubyforge.org/frs/?group_id=167
    (at the time of writing it is this: rubyinstaller-1.9.1-p243-rc1.exe)
    Note: The Ruby path is not set by default but there is an option to set it in the installer
    Type ruby -v in the command line which should return
    ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
    You can have >1 versions of Ruby installed, but the first that is found in the path is used.
    Download 7-zip www.7-zip.org and unzip the devkit to here C:\ruby19

No comments:

Post a Comment