mind the explanatory gap

many a slip ‘twixt mind and lip…

mind the explanatory gap RSS Feed

compiling PHP with aspell support

I was banging my head against a brick wall trying to get aspell support working with PHP.

The php module make stage kept failing with errors like:

ld: ext/pspell/pspell.o illegal reference to symbol:
_aspell_error_number defined in indirectly referenced
dynamic library /usr/local/lib/libaspell.15.dylib

Turns out this is a known bug to do with aspell and php under OS X.

The fix is quite simple.

Before you attempt to run “./configure –whatever” for php, edit the 'configure' file inside the php source folder, and look for the line:

LIBS="-lpspell $LIBS

Change it so that it looks like:

LIBS="-laspell -lpspell $LIBS"

and bob's your uncle.

Leave a Reply