您的位置:首页 > 编程语言 > Ruby

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

2012-08-30 14:21 337 查看
需要安装  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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐