需要安装  devkit   

   C:\Users\Administrator>gem install ruby-debug-ideFetching: ruby-debug-ide-0.4.16.gem (100%)ERROR:  Error installing ruby-debug-ide:        The 'ruby-debug-ide' native gem requires installed build toolsPlease 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'

  要先下载devkit  

    下载地址: http://rubyinstaller.org/downloads/

然后extract...

    

.\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.

F:\study\ruby\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

.\devkit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby193'
[INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'

F:\study\ruby\devkit>gem install ruby-debug-ide
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-ide:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe mkrf_conf.rb
Building native extensions.  This could take a while...


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-deb
g-ide-0.4.16 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.16/ext
gem_make.out

如果有上面的错误 或者 是win7 64bit (bug)

那么执行

 

Since it seems you have DevKit installed already, run this command

gem install ruby-debug-ide --platform=ruby --pre

As mentioned in that post, it's a bug fixed in not yet released version of ruby-debug-ide

Edit:

This seems to work (Windows 7 64 bit):

gem install ruby-debug-ide --pre

gem install ruby-debug-base19x --pre

       

refer:  http://www.rubytips.org/2011/12/20/installing-ruby-on-windows-7-ruby-1-9-x-guide/

        https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐