Created
May 17, 2011 17:32
-
-
Save jonforums/976923 to your computer and use it in GitHub Desktop.
RubyInstaller 1.8.7 rdiscount installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\Jon>gem list rdiscount | |
| *** LOCAL GEMS *** | |
| rdiscount (1.6.8) | |
| C:\Users\Jon>ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html" | |
| <p><strong>Hello RubyInstaller</strong></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\Jon>gem env | |
| RubyGems Environment: | |
| - RUBYGEMS VERSION: 1.8.2 | |
| - RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] | |
| - INSTALLATION DIRECTORY: C:/ruby187/lib/ruby/gems/1.8 | |
| - RUBY EXECUTABLE: C:/ruby187/bin/ruby.exe | |
| - EXECUTABLE DIRECTORY: C:/ruby187/bin | |
| - RUBYGEMS PLATFORMS: | |
| - ruby | |
| - x86-mingw32 | |
| - GEM PATHS: | |
| - C:/ruby187/lib/ruby/gems/1.8 | |
| - C:/Users/Jon/.gem/ruby/1.8 | |
| - GEM CONFIGURATION: | |
| - :update_sources => true | |
| - :verbose => true | |
| - :benchmark => false | |
| - :backtrace => false | |
| - :bulk_threshold => 1000 | |
| - :sources => ["http://rubygems.org", "http://gemcutter.org"] | |
| - "gem" => "--no-ri --no-rdoc" | |
| - REMOTE SOURCES: | |
| - http://rubygems.org | |
| - http://gemcutter.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # file: C:\ruby187\lib\ruby\site_ruby\1.8\rubygems\defaults\operating_system.rb | |
| # :DK-BEG: override 'gem install' to enable RubyInstaller DevKit usage | |
| Gem.pre_install do |gem_installer| | |
| unless gem_installer.spec.extensions.empty? | |
| unless ENV['PATH'].include?('C:\\DevKit\\mingw\\bin') then | |
| Gem.ui.say 'Temporarily enhancing PATH to include DevKit...' if Gem.configuration.verbose | |
| ENV['PATH'] = 'C:\\DevKit\\bin;C:\\DevKit\\mingw\\bin;' + ENV['PATH'] | |
| end | |
| ENV['RI_DEVKIT'] = 'C:\\DevKit' | |
| ENV['CC'] = 'gcc' | |
| ENV['CXX'] = 'g++' | |
| ENV['CPP'] = 'cpp' | |
| end | |
| end | |
| # :DK-END: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # file: C:\ruby187\lib\ruby\site_ruby\devkit.rb | |
| # enable RubyInstaller DevKit usage as a vendorable helper library | |
| unless ENV['PATH'].include?('C:\\DevKit\\mingw\\bin') then | |
| puts 'Temporarily enhancing PATH to include DevKit...' | |
| ENV['PATH'] = 'C:\\DevKit\\bin;C:\\DevKit\\mingw\\bin;' + ENV['PATH'] | |
| end | |
| ENV['RI_DEVKIT'] = 'C:\\DevKit' | |
| ENV['CC'] = 'gcc' | |
| ENV['CXX'] = 'g++' | |
| ENV['CPP'] = 'cpp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment