If you are not familiar with installing software on a Unix machine please read the following additional information. There is an entry for each step in the installation procedure.
The IF/Prolog files are written on the tape in standard Unix tar format. Each tarfile contains a number of files which are transferred to a subdirectory on your machine while the tarfile is read. The IF/Prolog delivery tape contains one file (tarfile) for the IF/Prolog development system, one file for every additional interface available (e.g. OSF/Motif interface, Informix Interface, Constraints) plus one file containing the installation scripts.
You first read the tarfile containing the installation scripts
from the tape.
a.
Read the contents of the distribution tape.
b.
Read all tarfiles on the remote machine.
c. Transfer the tarfiles to the machine where you want to install. You can use rcp (remote copy), ftp in binary mode or any other appropriate tool. Change the current directory ( cd ) to this directory.
If you are installing from tape, the installation script will suggest an installation directory. If you execute the ./install script as the superuser, this default directory is system dependent. Otherwise, the default directory is the subdirectory prolog in the home directory of the person installing. However, you can install IF/Prolog in any directory you have write access to.
IF/Prolog will be generated according to the options you chose. You can always generate alternative or additional IF/Prolog kernels with different options at a later time by executing the link_prolog script delivered with the IF/Prolog system.
Korn shell, Bourne shell, or a related shell
Bourne shell (sh): set PROROOT=< directory > export PROROOT Korn shell (ksh): typeset -x PROROOT= < directory >
You should add those commands to the file .profile in your home directory. Then those commands will be executed automatically every time you login. Setting the PROROOT environment variable is not necessary when you install IF/Prolog as a superuser and select the system dependent installation directory proposed by the installation script.
You can always call IF/Prolog with the command $PROROOT/bin/prolog or with the full directory path name. To call it just by prolog, you must add the subdirectory $PROROOT/bin to the PATH environment variable.
Look in your .profile file for a line
PATH= < some directories >
and edit it to include the IF/Prolog installation path:
PATH=...:$PROROOT/bin:...
If you cannot find this line, add the lines
PATH=:$PATH:$PROROOT/bin
export PATH
C shell or a related shell
setenv PROROOT < directory >
You should add this command to the file .login
in your home directory. Then this command
will be executed automatically every time you login.
Setting the PROROOT environment variable is not necessary
when you install IF/Prolog as a superuser and select the
system dependent installation directory proposed by the
installation script.
You can always call IF/Prolog with the command
$PROROOT/bin/prolog
or with the full directory path name.
To call it just by prolog ,
you must add the subdirectory $PROROOT/bin
to the path or PATH environment variable.
Look in your .login file for a line
set path = ( < some directories > )
and edit it to include the IF/Prolog installation path:
set path = ( ... $PROROOT/bin ...)
If you cannot find this line, add the line
set path = ( $PROROOT/bin $path )
write(hello).
to ensure your IF/Prolog system works. To leave IF/Prolog, type
halt.
To run some demos have a look at the PROROOT/DEMOS subdirectories.
| scroll to top |
|