Skip to content

Instantly share code, notes, and snippets.

@jonforums
Created October 6, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonforums/1268434 to your computer and use it in GitHub Desktop.
Save jonforums/1268434 to your computer and use it in GitHub Desktop.
RubyInstaller 1.9 rdiscount installation
C:\Users\Jon>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.10
- RUBY VERSION: 1.9.3 (2011-09-27 patchlevel -1) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/ruby193/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/ruby193/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/ruby193/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/ruby193/lib/ruby/gems/1.9.1
- C:/Users/Jon/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org"]
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org
## file: C:\ruby193\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'
## file: C:\ruby193\lib\ruby\1.9.1\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:
C:\Users\Jon>gem install rdiscount
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
C:\Users\Jon>gem list rdiscount
*** LOCAL GEMS ***
rdiscount (1.6.8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment