Conversion from Baidu -- dk
Gem often encounters installation or upgrade in Windows
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 devkit is not installed.
In this case, you need to download the devkit package. When I was downloading Ruby, I saw the pageHttp://rubyforge.org/frs? Group_id1_167there is a devkit-3.4.5r3-20091110.7z, and finally prove that this package is outdated, can not be used, be sure to download the latest from the http://rubyinstaller.org/downloads, if the above address is harmonious, fromHttp://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe this download.
After the download is complete, execute this file and unzip it to this directory.
Enter this Directory, which is <devkit_install_dir>.
> Cd <devkit_install_dir> Ruby DK. RB init # generate config. yml: Check the list of Ruby supported by devkit to be added. Only Ruby installed by rubyinstaller is supported. # If the ruby listed here does not meet your requirements, you can manually modify it> Ruby DK. RB Review # Check whether the list of Ruby supported by devkit is correct. You can skip this step> Ruby DK. RB install [info] Updating convenience notice gem override For 'C:/ruby192 '[info] installing 'C:/ruby192/lib/Ruby/site_ruby/devkit. RB'
Check whether the installation is successful
> Gem install rdiscount -- platform = rubyfetching: rdiscount-1.6.8.gem (100%) temporarily enhancing path to include devkit... building native extensions. this cocould take a while... successfully installed rdiscount-1.6.81 gem installedinstalling Ri documentation for rdiscount-1.6.8... installing rdoc documentation for rdiscount-1.6.8...
If the installation is successful, the installation is successful.