2010年8月31日火曜日

RubyInstaller new DevKit

Development KitからDevKit-4.5.0-20100819-1536-sfx.exeをdownloadして、c:\ruby\DevKitに展開する。
C:\ruby\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/ruby/Ruby187
[INFO] found RubyInstaller v1.9.1 at C:/ruby/Ruby191
[INFO] found RubyInstaller v1.9.2 at C:/ruby/Ruby192

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.

C:\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:/ruby/Ruby187
C:/ruby/Ruby191
C:/ruby/Ruby192

C:\ruby\DevKit>ruby dk.rb install
[INFO] Installing C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/defaults/operating_system.rb
[INFO] Installing C:/ruby/Ruby187/lib/ruby/site_ruby/devkit.rb
[INFO] Installing C:/ruby/Ruby191/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb
[INFO] Installing C:/ruby/Ruby191/lib/ruby/site_ruby/devkit.rb
[INFO] Installing C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems/defaults/operating_system.rb
[INFO] Installing C:/ruby/Ruby192/lib/ruby/site_ruby/devkit.rb

C:\ruby\DevKit>gem install rdiscount --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.5
1 gem installed
Installing ri documentation for rdiscount-1.6.5...
Installing RDoc documentation for rdiscount-1.6.5...

C:\ruby\DevKit>ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"

Hello RubyInstaller

















0 件のコメント:

コメントを投稿