Aspell for Ruby with MacPorts installed Aspell

If you'd like to use Aspell and you use MacPorts to manage software on your Mac then you might run into a problem compiling the native extensions for RAspell. There's a pretty large error log, but the important part is this line:

raspell.h:6:20: error: aspell.h: No such file or directory

It can't find the Aspell headers even though it's been installed by MacPorts. Well, here's the fix: tell RubyGems where MacPorts has installed Aspell.

# Install the Aspell port
sudo port install aspell
# Install the Ruby bindings for Aspell
sudo gem install raspell -- --with-opt-dir=/opt/local

Leave feedback...

  1. Apparently great minds think alike. And so do you and I. I’ve been using the moniker Barking Iguana in various places since early 2001. I’m curious whether I was first. (Which you could definitively refute, but not confirm, since perhaps neither one of us was.)

Commenting is closed for this article.

About the boy

A picture of Craig in grayscale

Craig Webster is a software engineer living in London. He usually works with Ruby although sometimes he sneaks in some Erlang or JavaScript. He's into rock climbing, snowboarding, skating, photography and fencing. Yes, this does mean he has a sword.

Near here you'll find Craig's homepage, contact details, PGP key and keysigning policy, and talks.

Licence

The entire content of this blog is public domain. Use it however you fancy. You don't even need to attribute it to me, although it would be nice if you did. Just don't sue me and we'll all be happy.

I Work With Rails

Recommend Me

My Travels

I go places. Do you go places too? Let's meet up!.