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...
Commenting is closed for this article.

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.)