Skip to main content

Install Hpricot on Ubuntu

·65 words·1 min· ·
General
Ariejan de Vroom
Author
Ariejan de Vroom
Jack of all Trades, Professional Software Craftsman

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

The problem:

$ sudo gem install hpricot
Building native extensions.  This could take a while...
ERROR:  Error installing hpricot:
	ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
	from extconf.rb:1

The solution:

sudo apt-get install ruby1.8-dev build-essential
sudo gem install hpricot

Related

Ruby Gem: IMDB
·200 words·1 min
General Ruby Imdb Gem Api
Speak louder! I can't hear you over the sound of how awesome I am!
·3 words·1 min
General Twitter Awesome Twitshirt Tshirt
Second RubyFest Speaker: Geoffrey Grosenbach
·77 words·1 min
General