Ruby Environment Building--windows

Source: Internet
Author: User

    1. Download Rubyinstaller.
      1. Link: http://rubyinstaller.org/downloads/. Run the installation directly
      2. Note You need to add the following in the environment variable: \ruby\bin
      3. Test command: Ruby-v
    2. Install RubyGems.
      1. Links: https://rubygems.org/
      2. Auto: Gem Update--system
      3. Manual: CD C:\Downloads\rubygems-2.6.7; Ruby Setup.rb
    3. 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:
    1. Download development Kit from http://rubyinstaller.org/downloads/. Note the corresponding Rubyinstaller version.
    2. Extract DevKit to Path C:\Ruby\DevKit
    3. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.