Skip to content

Instantly share code, notes, and snippets.

@573
Created March 2, 2012 08:34
Show Gist options
  • Save 573/1956800 to your computer and use it in GitHub Desktop.
Save 573/1956800 to your computer and use it in GitHub Desktop.
Install the nokogiri xml module on a rubyinstaller based setup in win32 (history of commands issued at my cmd.exe prompt to achieve this)
:: First installed devkit from rubyinstaller page to E:\Programme\DevKit
:: Then installed Ruby193 from rubyinstaller page to E:\Programme\Ruby193
:: opened cmd.exe prompt
pushd E:\Programme\DevKit
set PATH=E:\Programme\Ruby193\bin;%PATH%
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
gem install rdiscount --platform=ruby
ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"
gem install nokogiri -- --pre --with-libxml2 --with-libxslt --platform=ruby
ruby -rubygems -e "require 'nokogiri'; puts (Nokogiri::XML::Builder.new { |xml| xml.root('xmlns' => 'default', 'xmlns:foo' => 'bar') do xml.ghajgsdjfgajkfg; end }).to_xml
@573
Copy link
Author

573 commented Mar 2, 2012

Those commands are only for proof and aren't needed basically:
ruby dk.rb review
gem install rdiscount --platform=ruby
ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment