尝试在Windows 7中安装ruby的开发工具包,但失败

我正在尝试为vim的CommandT插件安装ruby的开发工具包,而且我碰到了

C:\Users\Administrator>gem install rdiscount --platform=ruby ERROR: Error installing rdiscount: The 'rdiscount' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' 

我已经运行安装devkit在下面显示

 C:\devkit>ruby dk.rb init [INFO] found RubyInstaller v1.9.3 at C:/Ruby193 Initialization complete! Please review and modify the auto-generated 'config.yml' file to ensure it contains the root directories to all of the installed Rubies you want enhanced by the DevKit. C:\devkit>ruby dk.rb review Based upon the settings in the 'config.yml' file generated from running 'ruby dk.rb init' and any of your customizations, DevKit functionality will be injected into the following Rubies when you run 'ruby dk.rb install'. C:/Ruby193 C:\devkit>ruby dk.rb install [INFO] RubyGems override already in place for C:/Ruby193, skipping. [WARN] DevKit helper library already exists for C:/Ruby193, skipping. 

什么可能会出错?

编辑:我试过了

 c:\devkit>ruby dk.rb install --force Configures an MSYS/MinGW based Development Kit (DevKit) for each of the Ruby installations on your Windows system. The DevKit enables you to build many of the available native C-based RubyGems that don't yet have a binary gem. Usage: ruby dk.rb COMMAND where COMMAND is one of: init prepare DevKit for installation review review DevKit install plan install install required DevKit executables 

卸载并重新安装一个干净的目录。 但是错误仍然是一样的。

在这一行上:

 C:\devkit>ruby dk.rb install [INFO] RubyGems override already in place for C:/Ruby193, skipping. [WARN] DevKit helper library already exists for C:/Ruby193, skipping. 

它告诉你,它没有安装Ruby的DevKit,因为它已经有一个以前的DevKit在那里注册。

你可能会重新安置以前安装的DevKit,在这种情况下,你需要执行ruby dk.rb install --force来覆盖它以前跳过的RubyGems和DevKit助手脚本。

希望有所帮助。

我有同样的问题与红宝石dk.rb安装,但是,建议使用–force选项,它已经成功安装我的开发工具包,从而解决了我用JSON 1.4.6宝石获得的宝石安装失败。