How to get Ruby and DevKit on Windows

Install Ruby and DevKit on Windows:

Download necessary files here and here
  • Run Ruby '1.9.3.exe'
  • Install to desired path (I used default C:\Ruby193)
  • Select all optional installation extras
You will now have 'Start Command Prompt with Ruby' in your menu, This is what we will be using.
(I will refer to this in guides as RubyCMD)
  • Open 'Ruby DevKit 4.5.2' (Please Run After fresh ruby install [No extra gems installed])
  • Extract to chosen destination (I chose C:\DevKit and recommend this)
  • Open RubyCMD
 cd C:\Devkit
 //*[or your chosen install directory]
 ruby dk.rb init
 ruby dk.rb install

Testing the install:
 gem install rdiscount --platform=ruby

You should see: Temporarily enhancing PATH to include DevKit...

Confirm gem is working:
ruby -rubygems -e "require 'rdiscount'; puts ('**Hello Ruby Installer**').to_html'"

Congratulations you now have Ruby with DevKit installed on Windows.

Follow me on @BraddStevo

*Credit for installed to 'RubyInstaller for Windows'*

1 comment:

  1. E:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount-1.6.8/lib/rdiscount.rb:87:in `init
    ialize': wrong number of arguments (0 for 1) (ArgumentError)
    from -e:1:in `new'
    from -e:1:in `'

    What is this..Its ruby already installed in my pc?