Posts Tagged ‘ubuntu’

Install Mongrel & Hpricot Under Ubuntu

Monday, March 24th, 2008

When­ever I do a fresh install of Ubuntu, and I’m set­ting up Ruby, Rails, I always run into the same prob­lem with a hand­ful of gems (such as Mon­grel & Hpri­cot). This is how things usu­ally go down:

matt@thinkpad:~$ 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 install hpricot
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/hpricot-0.6 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/hpricot-0.6/ext/hpricot_scan/gem_make.out

Now what? The main prob­lem here is that Hpri­cot and Mon­grel both con­tain some C code that needs to be com­piled. In order to fix this, you’ll need to install the Ruby & C devel­op­ment libraries for Ubuntu. To do that, just fire up Ter­mi­nal and enter:

sudo apt-get install ruby1.8-dev linux-libc-dev libc6-dev

You should now be able to install Hpri­cot, Mon­grel, or any other gem that requires you to build some C. It’s that easy!

KDE4: meh

Saturday, January 12th, 2008

I gave KDE4 a brief spin over the last cou­ple of days, and I’ve got to say that I pretty much hated it. I think Ubuntu Tuto­ri­als hit it right on the nose, so I won’t go into any real detail of what sucked so bad. Suf­fice it to say that the two main things (for me) that made it so awful were the following:

  1. They basi­cally took every­thing use­ful out of the K menu, so it’s not clear at all how to even do any­thing. If it’s so con­fus­ing for some­one who’s pre­vi­ously used KDE at some length, I shud­der to think how a novice user would fare.
  2. It looks so much like Aero. So much.

So, what­ever. I kind of hated it. How­ever, I’m a semi-devout GNOME/Aqua user, and I’ve got my desk­top tweaked so I can wring every last drop of scream­ing pro­duc­tiv­ity out of it. Maybe try the new KDE for your­self. YMMV.

If you do want to get it going on your sys­tem, and you’re run­ning Ubuntu (or pro­lly any Debian-based dis­tro), you can use this tuto­r­ial.