Programming with little G Ruby Development (2) configuration debugging environment

Source: Internet
Author: User

In the previous article, we set up a ruby development environment. In fact, it is incomplete because only Ruby computers are installed and Ruby development cannot be carried out, even the most basic debugging functions cannot be used, just as Java developers only install JRE. We need to install the gem for subsequent development, but the following error will be reported when installing the gem in rubymine:

Please update your path to include build tools or download the devkitfrom 'HTTP: // rubyinstaller.org/downloads' and follow the instructionsat 'HTTP: // github.com/oneclick/rubyinstaller/wiki/development-kit'

This is because you have not installed devkit.

Devkit is a tool for compiling and using local C/C ++ extension packages on Windows. It is used to simulate make, GCC, and sh on the Linux platform for compilation. Note: This method currently only supports Ruby installed through rubyinstaller. If it is not recommended that you reinstall it.

Installation Method

1. Download The devkit compressed package: devkit

2. Click Run To SetProgramDecompress the package to a specified directory, such as D: \ Dropbox \ public \ devtools \ jetbrains \ devkit;

3. Open CMD and use the CD command to navigate to the directory where devkit is located, as shown in:

4. Run the devkit Installation File and enter the installation command in the following order:

# Generate config. yml. Check the list of Ruby supported by devkit. Only Ruby installed by rubyinstaller is supported;

# If the ruby listed here does not meet your requirements, you can manually modify it;

# Check whether the list of Ruby supported by devkit is correct. skip this step;

# Install devkit;

5. Check whether devkit is successfully installed.

If rdiscount is successfully installed, devkit is successfully installed.

For beginners of Ruby, if the above method is not successful, there is a super simple method: InstallRuby on RailsThis is a one-stop installation, including the following application list:

  • Ruby1.9.3-p125
  • Rails3.2
  • Bundler1.0.18
  • Git1.7.6
  • SQLite3.7.3
  • Tinytds0.4.5
  • SQL Server Support3.3.3
  • Devkit
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.