2004-04-26 00:57:46 +01:00
|
|
|
=================================================================
|
|
|
|
Logtalk - Object oriented extension to Prolog
|
2004-11-16 19:37:30 +00:00
|
|
|
Release 2.21.6
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
|
2004-09-15 00:11:12 +01:00
|
|
|
Installing Logtalk is just a matter of decompressing the downloaded archive
|
|
|
|
and copying the resulting directory to a suitable location.
|
|
|
|
|
2004-04-26 00:57:46 +01:00
|
|
|
The Logtalk directory can reside in any user accessible location.
|
2004-09-15 00:11:12 +01:00
|
|
|
This location depends on the working environment and on the number of users.
|
|
|
|
The "misc" sub-directory contains some shell scripts for easy installation
|
2004-10-17 23:37:16 +01:00
|
|
|
of Logtalk on Windows, Unix, and Unix-like operating systems (for details,
|
|
|
|
see the misc/NOTES file).
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2004-08-16 17:41:11 +01:00
|
|
|
location that its accessible by all the users (assuming that copying the
|
|
|
|
Logtalk directory to each user home directory is not feasible or desired).
|
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
|
2004-08-16 17:41:11 +01:00
|
|
|
security risk. One solution is to copy the Logtalk xml, examples, and library
|
|
|
|
directories to each user home directory (the "misc" sub-directory contains
|
|
|
|
some scripts which may be called by the end-users for making these copies).
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
ENVIRONMENT VARIABLES
|
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
It is recommended that you define an environment variable named LOGTALKHOME
|
|
|
|
pointing to the Logtalk installation directory for use with your Prolog
|
|
|
|
compilers. In addition, you may want to add the Logtalk sub-directory "xml",
|
|
|
|
which contains useful scripts for processing XML documenting files, to your
|
|
|
|
execution path.
|
2004-04-26 00:57:46 +01:00
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
* Unix and Unix-like systems:
|
|
|
|
|
|
|
|
If you use a csh shell, add the following line to your ~/.cshrc file:
|
|
|
|
|
2004-11-16 19:37:30 +00:00
|
|
|
setenv LOGTALKHOME /your/installation/directory/lgt2216
|
2004-08-16 17:41:11 +01:00
|
|
|
setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
If you use a bash shell, add the following lines to your ~/.profile file:
|
|
|
|
|
2004-11-16 19:37:30 +00:00
|
|
|
LOGTALKHOME=/your/installation/directory/lgt2216
|
2004-04-26 00:57:46 +01:00
|
|
|
export LOGTALKHOME
|
2004-08-16 17:41:11 +01:00
|
|
|
PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
|
|
|
|
export PATH
|
2004-04-26 00:57:46 +01:00
|
|
|
|
|
|
|
When using the provided shell script for installing Logtalk, a symbolic link
|
|
|
|
to the Logtalk installation directory is automatically created. The link is
|
2004-08-16 17:41:11 +01:00
|
|
|
named "logtalk". In this case, you may use this symbolic link to define the
|
2004-04-26 00:57:46 +01:00
|
|
|
environment variable in order to avoid breaking it when upgrading Logtalk.
|
2004-06-13 19:04:28 +01:00
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
* Windows systems:
|
|
|
|
|
|
|
|
In Windows 95/98/ME, environment variables are defined in the autoexec.bat
|
|
|
|
file (you will need to reboot after editing the file):
|
|
|
|
|
|
|
|
SET LOGTALKHOME=C:\your\installation\folder\
|
|
|
|
|
|
|
|
In Windows NT/2000/XP, environment variables are defined using the System
|
2004-09-15 00:11:12 +01:00
|
|
|
properties control panel (if you are a system administrator, you should use
|
|
|
|
the JScript install script provided in the "misc" sub-directory).
|
2004-08-16 17:41:11 +01:00
|
|
|
|
2004-06-13 19:04:28 +01:00
|
|
|
|
2004-11-16 19:37:30 +00:00
|
|
|
CUSTOMIZING PROLOG CONFIGURATION FILES
|
|
|
|
|
|
|
|
Logtalk interfaces with a specific Prolog compiler via a configuration file
|
|
|
|
that can be found on the $LOGTALKHOME/configs directory. These configuration
|
|
|
|
files can be customized by changing the values of the default flags and
|
|
|
|
compiler options which are used by Logtalk when compiling source files. For
|
|
|
|
a full description of these default flags and compiler options, consult the
|
|
|
|
"Running and debugging Logtalk programs" section of the User Manual. Some of
|
|
|
|
the default flags that you may want to change are: "portability", "altdirs",
|
|
|
|
"underscore_vars", "startup_message", "smart_compilation", and the set of
|
|
|
|
documentation-related flags ("xml", "xsl", "xmlspec", and "doctype"). Be sure
|
|
|
|
to read the $LOGTALKHOME/configs/NOTES file for Prolog specific notes; some
|
|
|
|
Prolog compilers do not support the whole range of compilation flags.
|
|
|
|
|
|
|
|
|
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-08-16 17:41:11 +01:00
|
|
|
and the Logtalk compiler. The "misc" sub-directory contains several scripts
|
|
|
|
for automating the creation of these initialization files for some Prolog
|
|
|
|
compilers. In addition, be sure to read the configs/NOTES file notes on the
|
|
|
|
Prolog compilers that you intend to use.
|