Skip to content

Instantly share code, notes, and snippets.

@ashrewdmint
Created December 21, 2009 22:44
Show Gist options
  • Save ashrewdmint/261321 to your computer and use it in GitHub Desktop.
Save ashrewdmint/261321 to your computer and use it in GitHub Desktop.
1. Installing the nokogiri gem.
Without libxml2 installed, nokogiri gives you an error asking you to run 'yum install libxml2-devel'
My slice is on Ubuntu, so I have to run 'aptitude install libxml2-dev'. Then nokogiri asks me to install libxslt, so I run 'aptitude install libxslt'.
Nokogiri installs and all is well with the world, until...
2. Then I get this when trying to run my app: http://github.com/tenderlove/mechanize/issues#issue/9
So I apply the patch. No luck. The comments say I need a newer version of libxml2 than aptitude will give me.
3. Following these instructions, I install libxml2 from source after removing it with aptitude. No luck. Now I get this:
libexslt.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.so
No fair. libexslt.so.0 is in /usr/local/lib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment