Last updated

Install Hpricot on Ubuntu

It’s quite easy. Make sure you have RubyGems and Ruby installed first, of course.

The problem:

1$ sudo gem install hpricot
2Building native extensions.  This could take a while...
3ERROR:  Error installing hpricot:
4	ERROR: Failed to build gem native extension.
5
6/usr/bin/ruby1.8 extconf.rb
7extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
8	from extconf.rb:1

The solution:

1sudo apt-get install ruby1.8-dev build-essential
2sudo gem install hpricot
Tags: General