root/tags/lgt2211/INSTALL

Revision 1530, 3.7 KB (checked in by pmoura, 4 years ago)

Updated to Logtalk 2.21.1.

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