| 1 | ================================================================= |
|---|
| 2 | Logtalk - Object oriented extension to Prolog |
|---|
| 3 | Release 2.21.0 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. |
|---|
| 6 | ================================================================= |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | Installing Logtalk is just a matter of decompressing the downloaded archive |
|---|
| 10 | and copying the resulting directory to a suitable location. |
|---|
| 11 | |
|---|
| 12 | The Logtalk directory can reside in any user accessible location. |
|---|
| 13 | This location depends on the working environment and on the number of users. |
|---|
| 14 | The "misc" sub-directory contains some shell scripts for easy installation |
|---|
| 15 | of Logtalk on Windows, Unix and Unix-like operating systems. |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | INSTALLING FOR A SINGLE USER |
|---|
| 19 | |
|---|
| 20 | In the case of a single user, the Logtalk directory may simply be copied to |
|---|
| 21 | the user home directory. |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | INSTALLING FOR MULTIPLE USERS |
|---|
| 25 | |
|---|
| 26 | In the case of multiple users, the Logtalk directory can be copied to any |
|---|
| 27 | location that its accessible by all the users (assuming that copying the |
|---|
| 28 | Logtalk directory to each user home directory is not feasible or desired). |
|---|
| 29 | |
|---|
| 30 | Regarding directory and file permissions, it is advisable to make all files |
|---|
| 31 | read-only in order to avoid user tempering. However, the library and examples |
|---|
| 32 | sub-directories (and possibly the compiler sub-directory, depending on the |
|---|
| 33 | chosen Prolog compiler) must be user writable as compiling Logtalk source |
|---|
| 34 | files generates intermediate Prolog files, which are written to the same |
|---|
| 35 | location as the source files. However, making directories world-writable is a |
|---|
| 36 | security risk. One solution is to copy the Logtalk xml, examples, and library |
|---|
| 37 | directories to each user home directory (the "misc" sub-directory contains |
|---|
| 38 | some scripts which may be called by the end-users for making these copies). |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | ENVIRONMENT VARIABLES |
|---|
| 42 | |
|---|
| 43 | It is recommended that you define an environment variable named LOGTALKHOME |
|---|
| 44 | pointing to the Logtalk installation directory for use with your Prolog |
|---|
| 45 | compilers. In addition, you may want to add the Logtalk sub-directory "xml", |
|---|
| 46 | which contains useful scripts for processing XML documenting files, to your |
|---|
| 47 | execution path. |
|---|
| 48 | |
|---|
| 49 | * Unix and Unix-like systems: |
|---|
| 50 | |
|---|
| 51 | If you use a csh shell, add the following line to your ~/.cshrc file: |
|---|
| 52 | |
|---|
| 53 | setenv LOGTALKHOME /your/installation/directory/lgt2210 |
|---|
| 54 | setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc |
|---|
| 55 | |
|---|
| 56 | If you use a bash shell, add the following lines to your ~/.profile file: |
|---|
| 57 | |
|---|
| 58 | LOGTALKHOME=/your/installation/directory/lgt2210 |
|---|
| 59 | export LOGTALKHOME |
|---|
| 60 | PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc |
|---|
| 61 | export PATH |
|---|
| 62 | |
|---|
| 63 | When using the provided shell script for installing Logtalk, a symbolic link |
|---|
| 64 | to the Logtalk installation directory is automatically created. The link is |
|---|
| 65 | named "logtalk". In this case, you may use this symbolic link to define the |
|---|
| 66 | environment variable in order to avoid breaking it when upgrading Logtalk. |
|---|
| 67 | |
|---|
| 68 | * Windows systems: |
|---|
| 69 | |
|---|
| 70 | In Windows 95/98/ME, environment variables are defined in the autoexec.bat |
|---|
| 71 | file (you will need to reboot after editing the file): |
|---|
| 72 | |
|---|
| 73 | SET LOGTALKHOME=C:\your\installation\folder\ |
|---|
| 74 | |
|---|
| 75 | In Windows NT/2000/XP, environment variables are defined using the System |
|---|
| 76 | properties control panel (if you are a system administrator, you should use |
|---|
| 77 | the JScript install script provided in the "misc" sub-directory). |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | CREATING NEW PROLOG TOP-LEVELS FOR AUTOMATIC LOADING OF LOGTALK |
|---|
| 81 | |
|---|
| 82 | Most Prolog compilers allows the user to define an initialization file that |
|---|
| 83 | is automatically consulted at startup. This initialization file may contain |
|---|
| 84 | directives for loading other files, such as the Logtalk configuration file |
|---|
| 85 | and the Logtalk compiler. The "misc" sub-directory contains several scripts |
|---|
| 86 | for automating the creation of these initialization files for some Prolog |
|---|
| 87 | compilers. In addition, be sure to read the configs/NOTES file notes on the |
|---|
| 88 | Prolog compilers that you intend to use. |
|---|