如何在win7上调试ruby程序

 我来答
匿名用户
2017-07-24
展开全部
先安装rubyinstaller,下载并解压DevKit,注意,这两个版本要对应,网页上有说明(http://rubyinstaller.org/downloads/),解压DevKit后,打开目录,运行devkitvars.bat(是不是必须的不确定)。
打开cmd,进入DevKit的解压目录
ruby dk.rb
---
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
RubyGems that don't yet have a binary gem.
Usage: ruby dk.rb COMMAND [options]
where COMMAND is one of:
init prepare DevKit for installation
review review DevKit install plan
install install required DevKit executables
and 'install' [options] are:
-f, --force overwrite existing helper scripts
-------------
ruby dk.rb init
---
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.
--------------------------------
ruby dk.rb install
---
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'
如果出现的是这个,则需要修改config.yml
加入
- C:\Ruby200-x64
---
[INFO] Updating convenience notice gem override for 'C:/Ruby200-x64'
[INFO] Installing 'C:/Ruby200-x64/lib/ruby/site_ruby/devkit.rb'
这是对的
---------------------
gem install ruby-debug-ide
---
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed ruby-debug-ide-0.4.17
Parsing documentation for ruby-debug-ide-0.4.17
Installing ri documentation for ruby-debug-ide-0.4.17
1 gem installed
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
匿名用户
2017-07-22
展开全部
先安装rubyinstaller,下载并解压DevKit,注意,这两个版本要对应,网页上有说明(http://rubyinstaller.org/downloads/),解压DevKit后,打开目录,运行devkitvars.bat(是不是必须的不确定)。
打开cmd,进入DevKit的解压目录
ruby dk.rb
---
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
RubyGems that don't yet have a binary gem.

Usage: ruby dk.rb COMMAND [options]

where COMMAND is one of:

init prepare DevKit for installation
review review DevKit install plan
install install required DevKit executables

and 'install' [options] are:

-f, --force overwrite existing helper scripts

-------------

ruby dk.rb init
---
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.

--------------------------------
ruby dk.rb install
---
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'
如果出现的是这个,则需要修改config.yml
加入

- C:\Ruby200-x64

---
[INFO] Updating convenience notice gem override for 'C:/Ruby200-x64'
[INFO] Installing 'C:/Ruby200-x64/lib/ruby/site_ruby/devkit.rb'

这是对的

---------------------
gem install ruby-debug-ide
---

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed ruby-debug-ide-0.4.17
Parsing documentation for ruby-debug-ide-0.4.17
Installing ri documentation for ruby-debug-ide-0.4.17
1 gem installed
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式