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
|