26 lines
638 B
Markdown
26 lines
638 B
Markdown
---
|
|
title: "Install Hpricot on Ubuntu"
|
|
kind: article
|
|
slug: install-hpricot-on-ubuntu
|
|
created_at: 2009-06-05
|
|
tags:
|
|
- General
|
|
---
|
|
|
|
It's quite easy. Make sure you have RubyGems and Ruby installed first, of course.
|
|
|
|
The problem:
|
|
|
|
<pre lang="sh">$ 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</pre>
|
|
|
|
The solution:
|
|
|
|
<pre lang="sh">sudo apt-get install ruby1.8-dev build-essential
|
|
sudo gem install hpricot</pre> |