Unable to find 'rdebug-ide' binary script. May need to install 'ruby-debug-ide' gem

来源:互联网 发布:js统计点击次数 编辑:程序博客网 时间:2024/04/29 03:16

需要安装  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:/Ruby193Initialization complete! Please review and modify the auto-generated'config.yml' file to ensure it contains the root directories to allof the installed Rubies you want enhanced by the DevKit.F:\study\ruby\devkit>ruby dk.rb reviewBased upon the settings in the 'config.yml' file generatedfrom running 'ruby dk.rb init' and any of your customizations,DevKit functionality will be injected into the following Rubieswhen 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-ideTemporarily 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.rbBuilding native extensions.  This could take a while...Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debg-ide-0.4.16 for inspection.Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.16/extgem_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 --pregem 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

原创粉丝点击