Skip to content

Instantly share code, notes, and snippets.

@linojon
Created August 4, 2009 20:25
Show Gist options
  • Save linojon/161523 to your computer and use it in GitHub Desktop.
Save linojon/161523 to your computer and use it in GitHub Desktop.
===========================
local development machine
===========================
$ script/console production
Loading production environment (Rails 2.3.2)
>> h = Nokogiri::HTML( open("http://www.google.com") )
=> <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Google</title>
...
...
</body>
</html>
>> quit
$ gem list --local | grep nokogiri
nokogiri (1.3.3, 1.3.1)
===========================
hostingrails machine
===========================
# script/console production
Loading production environment (Rails 2.3.2)
HI. You're using libxml2 version 2.6.16 which is over 4 years old and has
plenty of bugs. We suggest that for maximum HTML/XML parsing pleasure, you
upgrade your version of libxml2 and re-install nokogiri. If you like using
libxml2 version 2.6.16, but don't like this warning, please define the constant
I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 before requring nokogiri.
>> h = Nokogiri::HTML( open("http://www.google.com") )
=> <!DOCTYPE html>
>> quit
# gem list --local | grep nokogiri
nokogiri (1.3.3, 1.3.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment