Installing SWI-Prolog on Mac OS X Leopard

I have been working on some of the Google Treasure Hunt problems, breaking out some textbooks, and dusting off some skills. It has been fun so far. But the last problem has me delving back into the Nondeterministic World of Prolog.

All I have ever used was SWI-Prolog so I tried to get it up and running on my Mac. However, the instructions given for installing (not using darwinports, but installable macports mpkg) seem to be wrong at least for OS X 10.5. Try as I might I could not get the command swipl to fire up the trusty interpreter. What I had to end up doing was adding an alias to my ‘.profile’ file in my home directory:

alias swipl='opt/bin/swipl'

Then everything worked hunky dory. Back to the Treasure Hunt!

Leave a Reply