2004-04-26 00:57:46 +01:00
|
|
|
=================================================================
|
|
|
|
Logtalk - Object oriented extension to Prolog
|
2004-08-02 17:08:31 +01:00
|
|
|
Release 2.19.1
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Installing Logtalk is just a matter of decompressing the downloaded
|
|
|
|
archive and copying the resulting directory to a suitable location.
|
|
|
|
The Logtalk directory can reside in any user accessible location.
|
|
|
|
This location depends on the working environment and on the number
|
|
|
|
of users. The "misc" sub-directory contains some shell scripts for
|
|
|
|
easy installation of Logtalk on Unix and Unix-like operating systems.
|
|
|
|
|
|
|
|
|
|
|
|
INSTALLING FOR A SINGLE USER
|
|
|
|
|
2004-07-25 19:47:43 +01:00
|
|
|
In the case of a single user, the Logtalk directory may simply be copied to
|
|
|
|
the user home directory.
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
INSTALLING FOR MULTIPLE USERS
|
|
|
|
|
2004-07-25 19:47:43 +01:00
|
|
|
In the case of multiple users, the Logtalk directory can be copied to any
|
|
|
|
location that its accessible by all the users.
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
Regarding directory and file permissions, it is advisable to make all files
|
|
|
|
read-only in order to avoid user tempering. However, the library and examples
|
|
|
|
sub-directories (and possibly the compiler sub-directory, depending on the
|
|
|
|
chosen Prolog compiler) must be user writable as compiling Logtalk source
|
|
|
|
files generates intermediate Prolog files, which are written to the same
|
|
|
|
location as the source files. However, making directories world-writable is a
|
|
|
|
security risk. There are two alternatives. The first one is to pre-compile the
|
|
|
|
library and all examples and to turn on the compiler option "smart_compilation"
|
|
|
|
in order to avoid the need of recompilation when the files are loaded by the
|
2004-07-09 00:48:59 +01:00
|
|
|
users. The second, and probably best, alternative is to copy the Logtalk xml,
|
|
|
|
examples, and library directories to each user home directory (the "misc"
|
|
|
|
sub-directory contains a shell script for automating these copies).
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
ENVIRONMENT VARIABLES
|
|
|
|
|
|
|
|
In Unix and Unix-like systems is recommended that you define an environment
|
|
|
|
variable named $LOGTALKHOME pointing to the Logtalk installation for use with
|
|
|
|
your Prolog compilers. If you use a csh shell, add the following line to your
|
|
|
|
~/.cshrc file:
|
|
|
|
|
2004-08-02 17:54:36 +01:00
|
|
|
setenv LOGTALKHOME "/your/installation/directory/lgt2191"
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
If you use a bash shell, add the following lines to your ~/.profile file:
|
|
|
|
|
2004-08-02 17:54:36 +01:00
|
|
|
LOGTALKHOME="/your/installation/directory/lgt2191"
|
2004-04-26 00:57:46 +01:00
|
|
|
export LOGTALKHOME
|
|
|
|
|
|
|
|
When using the provided shell script for installing Logtalk, a symbolic link
|
|
|
|
to the Logtalk installation directory is automatically created. The link is
|
|
|
|
named "logtalk". In this case, use this symbolic link to define the
|
|
|
|
environment variable in order to avoid breaking it when upgrading Logtalk.
|
2004-06-13 19:04:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
CREATING NEW PROLOG TOP-LEVELS FOR AUTOMATIC LOADING OF LOGTALK
|
|
|
|
|
|
|
|
Most Prolog compilers allows the user to define an initialization file that
|
|
|
|
is automatically consulted at startup. This initialization file may contain
|
|
|
|
directives for loading other files, such as the Logtalk configuration file
|
2004-07-09 00:48:59 +01:00
|
|
|
and the Logtalk compiler. The "misc" sub-directory contains several shell
|
|
|
|
scripts for automating the creation of these initialization files for some
|
2004-06-13 19:04:28 +01:00
|
|
|
popular Prolog compilers. In addition, be sure to read the configs/NOTES file
|
|
|
|
notes on the Prolog compilers that you intend to use.
|