root/trunk/INSTALL.txt

Revision 4466, 6.6 kB (checked in by pmoura, 39 hours ago)

Updated release number to 2.33.1.

Removed supported for the deprecated mutex_create/1 Prolog built-in predicate.

Updated the XSB config file by switching off the use of multifile/1 directives when compiling Logtalk source files as a workaround for know bugs in the implementation of this directive for dynamic predicates.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.33.1
4
5Copyright (c) 1998-2008 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12The recommended way of installing Logtalk is to use, whenever possible, one
13of the provided installers. This file contains detailed instructions for
14manual installation and configuration of Logtalk. You should also consult
15the "scripts/NOTES.txt" and "integration/NOTES.txt" files for a description
16of a set of shell scripts that might be used for Logtalk installation on
17some operating-systems and for easy Logtalk integration with popular Prolog
18compilers.
19
20Note that the broad compatibility of Logtalk, both with Prolog compilers and
21operating-systems, together with all the possible user scenarios, means that
22installation can vary from very simple by running a couple of scripts to the
23need of patching both Logtalk and Prolog compilers to workaround the lack of
24strong Prolog standards.
25
26
271. LOGTALK BASIC INSTALLATION
28
29Installing Logtalk can be as simple as decompressing the downloaded archive
30and copying the resulting directory to a suitable location. This location
31depends on the working environment and on the number of users. The Logtalk
32directory can reside in any user accessible location. Whenever possible, it
33is recommended that Logtalk be installed by a user with administrative rights,
34as described below. This leads to a setup where each Logtalk user may freely
35try and modify the provided examples, library, and configuration files with
36the option of, at any time, restoring the files to its original state by
37simply running one of the provided scripts.
38
39
40* Installing for a single user with no administrative rights:
41
42In the case of a single user with no administrative rights, the Logtalk
43directory may simply be copied to the user home directory.
44
45
46* Installing for one or more users by a user with administrative rights:
47
48In the case of installation by a user with administrative rights, the Logtalk
49directory can be copied to any location that its accessible by all the users
50(assuming that copying the Logtalk directory to each user home directory is,
51for some reason, not feasible or desired).
52
53The "scripts" sub-directory contains shell scripts for easy installation of
54Logtalk on POSIX operating systems (see the "scripts/NOTES.txt" file for
55details). Starting from the Logtalk directory, type:
56
57    % cd scripts
58    % sudo ./install.sh
59
60This installation script makes all files read-only for non-admin users in
61order to avoid user tempering. This is a convenient setup for computer labs,
62given that making directories world-writable is a security risk.
63
64
652. SETTING LOGTALK ENVIRONMENT VARIABLES
66
67You need to set two environment variables, LOGTALKHOME and LOGTALKUSER. The
68environment variable LOGTALKHOME should be set to the Logtalk installation
69directory. The environment variable LOGTALKUSER should point to a directory
70in your home directory where you want to store the user-specific Logtalk files
71(by default, "$HOME/logtalk" on POSIX systems and "My Documents\Logtalk" on
72Windows"). Both environment variables may be set for all users by a user with
73administration privileges. The two environment variables can have the same
74value if you are the only Logtalk user on your computer and if you have full
75permissions to the Logtalk installation directory.
76
77>> POSIX systems:
78
79If you use a csh shell, add the following line to your ~/.cshrc file:
80
81    setenv LOGTALKHOME /your/logtalk/installation/directory
82    setenv LOGTALKUSER $HOME/logtalk
83
84If you use a bash shell, add the following lines to your ~/.profile file:
85
86    LOGTALKHOME=/your/logtalk/installation/directory
87    LOGTALKUSER=$HOME/logtalk
88
89When using the provided shell script for installing Logtalk, a symbolic link
90to the Logtalk installation directory is automatically created. The link is
91named "logtalk". In this case, you may use this symbolic link to define the
92LOGTALKHOME environment variable in order to avoid breaking it when upgrading
93Logtalk.
94
95>> Windows systems:
96
97In Windows 2000/XP, environment variables are defined using the System
98properties control panel. If you are a system administrator, the Windows
99GUI installer sets the LOGTALKHOME environment variable for all users and
100also sets the LOGTALKUSER environment variable for the administrator user
101running the installer.
102
103
1043. END-USER SETUP (COPYING LOGTALK USER-MODIFIABLE FILES TO USERS HOME DIRS)
105
106If you installed Logtalk on your home directory, then skip this step if you
107have set both Logtalk environment variables (LOGTALKHOME and LOGTALKUSER) to
108point to the same directory.
109
110Each user must make a local copy of the Logtalk user-modifiable files to its
111home directory. This setup allows each user to easily and independently
112customize Logtalk to its needs. These copies can be easily made by instructing
113end-users to simply run the shell scripts "cplgtdirs.*" (which are described
114in the "scripts/NOTES.txt" file).
115
116>> POSIX systems:
117
118    % cplgtdirs
119
120>> Windows:
121
122    C:\> cplgtdirs
123
124The local copies made by the "cplgtdirs" scripts have both read and write
125permissions for the user running the script. When used with one of the
126back-end Prolog compilers for which an integration script is provided on
127the "integration" directory, this setup as the advantage of allowing each
128end-user to independently customize default compilation options and library
129paths.
130
131Windows (non-admin) users may also use the Logtalk GUI installer to setup
132their Logtalk user folder and the LOGTALKUSER environment variable.
133
134
1354. CREATING NEW PROLOG TOP-LEVELS FOR AUTOMATIC LOADING OF LOGTALK
136
137Most Prolog compilers allows the user to define an initialization file
138that is automatically consulted at startup. These initialization files
139may contain directives for loading other files, such as the Logtalk
140configuration file and the Logtalk compiler. The "$LOGTALKHOME/integration"
141sub-directory contains several pre-made scripts (named "*lgt.*") for running
142Logtalk with selected back-end Prolog compilers. You can use these scripts
143as examples when creating initialization files for other Prolog compilers.
144Be sure to read the "configs/NOTES.txt" file notes on the Prolog compilers
145that you intend to use. You may also simply follow the steps described in
146the "QUICK_START.txt" file.
147
148
1495. CUSTOMIZING LOGTALK
150
151Please see the file "CUSTOMIZE.txt" for details on how to customize your
152Logtalk installation and working environment.
Note: See TracBrowser for help on using the browser.