1. DevKit
1) Download DevKit file from http://www.softpedia.com/progDownload/DevKit-Download-193050.html (DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe)
2) Extract DevKit to path C:\Ruby193\DevKit
3) cd C:\Ruby192\DevKit
4) ruby dk.rb init
5) ruby dk.rb review
6) ruby dk.rb install
2. 下载ruby-1.9.3-p0源码
下载地址:ftp://ftp.ruby-lang.org//pub/ruby/1.9/
解压到地址:C:\Ruby193\ruby-1.9.3-p0
3. 下载ruby_core_source-0.1.5.gem、linecache19-0.5.13.gem、ruby-debug-base19-0.11.26.gem、ruby-debug19-0.11.6.gem,
下载地址:http://rubyforge.org/frs/?group_id=8883&release_id=46303,
保存地址:C:\Documentsand Settings\Administrator\My Documents\Downloads
4. Cd C:\Documents and Settings\Administrator\MyDocuments\Downloads
5. gem install ruby-debug-base19-0.11.26.gem ----with-ruby-include= C:\Ruby193\ruby-1.9.3-p0
6. gem install linecache19-0.5.13.gem ----with-ruby-include= C:\Ruby193\ruby-1.9.3-p0
7. gem install ruby-debug-base19-0.11.26.gem ----with-ruby-include= C:\Ruby193\ruby-1.9.3-p0
8. gem install ruby-debug19-0.11.6.gem -- --with-ruby-include=C:\Ruby193\ruby-1.9.3-p0
9. redbug
windows 安装TK :geminstall tk-win 不行的话 还要安装ActiveTCl, 然后copyTcl/bin/tcl85.dll tk85.dll 到ruby/bin下。测试用例
require 'tk'
root = TkRoot.new { title "Ex1" }
TkLabel.new(root) do
text 'Hello, World!'
pack { padx 15 ; pady 15; side 'left' }
end
Tk.mainloop
WINDOWS下安装wxruby
Gem install wxruby-ruby19