Skip to content

Instantly share code, notes, and snippets.

@Azolo
Created April 14, 2012 14:52
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 Azolo/2384960 to your computer and use it in GitHub Desktop.
Save Azolo/2384960 to your computer and use it in GitHub Desktop.
PS C:\Users\Justin\Projects\Ruby\test> gem i rdiscount json --no-ri --no-rdoc
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
ERROR: Error installing json:
pre-install hook at C:/SDK/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.
rb:2 failed for json-1.6.6
1 gem installed
# :DK-BEG: override 'gem install' to enable RubyInstaller DevKit usage
Gem.pre_install do |gem_installer|
unless gem_installer.spec.extensions.empty?
require 'devkit'
end
end
# :DK-END:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment