- Download Rubyinstaller.
- Link: http://rubyinstaller.org/downloads/. Run the installation directly
- Note You need to add the following in the environment variable: \ruby\bin
- Test command: Ruby-v
- Install RubyGems.
- Links: https://rubygems.org/
- Auto: Gem Update--system
- Manual: CD C:\Downloads\rubygems-2.6.7; Ruby Setup.rb
- Install the Gem Pack.
gem install net-scp gem install curl gem install net-ssh gem install json gem install curb gem install dnsruby gem install rufus-scheduler gem install pg gem install stomp gem install digest gem install rest_client gem install simpleidn  GEM INSTALL REST-CLIENT PS: Install JSON hint: "the ' JSON ' native gem requires installed build tools. " Workarounds:
- Download development Kit from http://rubyinstaller.org/downloads/. Note the corresponding Rubyinstaller version.
- Extract DevKit to Path C:\Ruby\DevKit
- Run:
- CD C:\Ruby\DevKit
- Ruby DK.RB Init
- Ruby DK.RB Review
- Ruby Dk.rb Install
* Restart Administrator cmd and run the gem install JSON to succeed.
Ruby Environment Building--windows