分类: Python/Ruby
2013-11-25 16:48:57
1. DevKit
1) Download DevKit file from (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源码
下载地址:
解压到地址: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,
下载地址:,
保存地址:C:\Documents and Settings\Administrator\My Documents\Downloads
4. Cd C:\Documents and Settings\Administrator\My Documents\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 :gem install tk-win 不行的话 还要安装ActiveTCl, 然后copy Tcl/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