At the moment on the Linux PC's at the University of Bristol, you have to run two export programs and then the pl
command. I personally found this a nuisance.
So I've developed a very tiny bash script so that you can just run prolog by calling
"prolog" from your home directory
prologchmod ugo=rwx prolog./prologReally simple, you can open it up if you like using gedit, emacs, vi or pico/nano, but it's just this:
export PATH=/usr/local/ml/swipl/swipl/bin:$PATH
export MANPATH=/usr/local/ml/swipl/swipl/man:$MANPATH
pl
Note that this probably only works on the computers in the Computer Science Linux Labs. At home you may have a
different command to run SWI-Prolog, for instance I have to run xpce.
If you find any bugs that are specifically about my three lines of code, or if have a problem with this tutorial, or have any suggestions then please email me: dl7836 at bristol dot ac dot uk. Or come see me if you see me around.
A site by Daniel Lewis