Instructions for experienced poplog users.

Installation:

Preliminary:
    Make sure you have all the required libraries.

E.g. on Fedora this should work. Use 'dnf' instead of 'yum' on recent versions
of Fedora. Some of this may be reduntant depending on what you already have
installed on your machine.

yum install gcc glibc-devel.x86_64 libXext-devel.x86_64 libX11-devel.x86_64 \
    libXt-devel.x86_64 motif-devel.x86_64 tcsh ncurses-devel.x86_64 xterm wget \
    espeak

On Ubuntu try this, or explicitly specify 64 bit options if that's not the
default.

apt-get install libc6 libncurses5 libstdc++6
apt-get install gcc build-essential tcsh  \
         libxext6 libxext-dev libx11-6 libx11-dev \
         libxt-dev libmotif-dev libncurses5-dev xterm wget \
         espeak

NB espeak is optional: e.g. useful for the eliza chatbot demo.

1) Unpack contents of the tarball in desired place
e.g.
    /usr/local/poplog

    Make a symbolic link 'current-poplog' to the directory created, e.g.

    ln -s v15.6301-amd64 current-poplog

    [Not absolutely essential but it can be useful to have things in
    a standard location.]

If you run bash, then

    cd <installation directory, e.g. current-poplog>

    use setenv or export to make that directory path the value of
    the environment variable $usepop

    e.g.

        setenv usepop /usr/local/poplog/current-poplog

or bash/sh equivalent.

SETUP ENVIRONMENT VARIABLES, including paths.

If running bash or sh

    source $usepop/poplog.sh

If running tcsh or csh

    source $usepop/poplog.csh

After that you should be able to run familiar commands, or possibly
only basepop11

E.g. if the pop11 command (or 'basepop11 +startup') fails, then you may
have to recreated the poplog saved images, e.g. by running

    $usepop/pop/com/mkstartup

Then, if you wsh to use xved, the graphical poplog editor, instead of just
ved in an xterm window:

    $usepop/pop/com/mkxved

Then create the prolog, commonlisp and PML saved images.

    $usepop/pop/com/makeimages

If this works you can use the gblocks saved image to show a toy demo of a
simplified version of Winograd's SHRDLU (circa 1971):

    $usepop/pop/com/mkgblocks


For this version, most of what's needed is already pre-built in the tar file.

But there are alternative build commands, provided by Waldek Hebisch

*) Edit the invocation of 'newpop' in the 'build_pop' script to choose
   appriate version of X support.  As is the build_pop script links
   with Motif (or Lesstif).  The alternative (commented out) line
   links with Xt.

*) run the 'build_pop' script to recompile (on fast machine it
   should take less than 30 seconds)

*) move 'poplog' script to some directory in the path and adjust
   the 'poplogroot' variable to point to root of the installed
   tree (that is directory containing this file).

Apologies for incomplete instructions. This is meant for expert users.


Aaron Sloman