Friday, 5 August 2011

Prologue

Next up in the 7 Languages book is Prolog, and the author points us towards the GNU gprolog package. Fortunately this time there is a prebuilt installer. Hooray, that’s a promising start.

Screeeech. As soon as I try to start the Prolog app I get a file not found type of error.

I am sadly lacking in unixy skills but was able to figure out that the path wasn’t set. Navigating to the correct folder and typing gprolog still gave command not found error but ./gprolog however worked fine. I added a symlink to gprolog in /usr/local/bin alongside the now defunct Io and was then able to launch it. The other option that I tried on my laptop was editing the .bash file to add to the Path environment variable. Both work, but I don't know which would be considered the best approach.

I have only done the first couple of simple examples to check that it is working properly, so I won't yet document my experiences with it, but I will say that after all these semi-colons for end of statements in C based languages, using a full stop feels very civilised :)

No comments:

Post a Comment