
October 15th, 2010, 10:04 AM
|
|
Contributing User
|
|
Join Date: Apr 2006
Location: Newcastle, Australia
Posts: 68
Time spent in forums: 13 h 3 m 55 sec
Reputation Power: 8
|
|
|
Nokogiri on XP - NameError
Hi
I have just instaled Ruby 1.9.2 using the ruby installer and the devkit version 4.5. All my gems are installing fine except nokogiri which I cannot get to go. This is an example of its error.
Code:
C:\Devkit>ruby -rubygems -e "require 'nokogiri'; puts nokogiri.new('**Hello RubyInstaller**').to_html" -e:1:in `<main>': undefined local variable or method `nokogiri' for main:Object (NameError)
I have tried and install with all various options but I cannot get it to go. Such as.
Code:
C:\Devkit>gem install nokogiri -- --platform=ruby --with-xslt-include --with-xml2-include Temporarily enhancing PATH to include DevKit... Successfully installed nokogiri-1.4.3.1-x86-mingw32 1 gem installed Installing ri documentation for nokogiri-1.4.3.1-x86-mingw32... Installing RDoc documentation for nokogiri-1.4.3.1-x86-mingw32...
Has anyone got it to work, I will change Ruby versions to get it to work. If you have got it to work then please let me know.
|