Howto install the nokogiri gem on Ubuntu

I’ve been wanting to test the nokogiri gem since it was announced. The library is supposed to be a faster html/xml parser than hpricot. Since I’ve used hpricot in a few projects I felt it would be worth testing. I had received strange errors when trying to install earlier versions which I never bothered to resolve. As of version 1.0.7 the only issues are that certain libraries need to be installed. Here are the steps I used:

  • sudo apt-get install libxml2-dev libxslt1-dev
  • sudo gem install nokogiri

Trackback URL for this post:

http://hightechsorcery.com/trackback/211

Thanks a lot.

Thanks a lot.

You are welcome.

You are welcome.

Awesome, that helped

Awesome, that helped immediately as well on Etch. Thank you very much for sharing!

Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License