Running Logtalk developer versions
Follow these steps to run a Logtalk developer version checked out from the Logtalk Subversion server:
1. Checking out the latest Logtalk development version
From the command-line, type the following commands:
$ cd ~ $ svn checkout http://svn.logtalk.org/logtalk/trunk lgtsvn
A lgtsvn directory will be created on your home directory containing a local copy of the current Logtalk development version. Later, to update your local copy to the latest development version just type:
$ cd ~/lgtsvn $ svn update
In alternative, you may use a GUI Subversion client.
2. Installing Logtalk
POSIX installation
If you use a bash shell, add the following lines to your ~/.profile file:
LOGTALKHOME=$HOME/lgtsvn LOGTALKUSER=$HOME/lgtsvn PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/scripts:$LOGTALKHOME/integration MANPATH=$MANPATH:$LOGTALKHOME/man export LOGTALKHOME LOGTALKUSER PATH MANPATH
If you use a csh shell, add the following line to your ~/.cshrc file:
setenv LOGTALKHOME $HOME/lgtsvn setenv LOGTALKUSER $HOME/lgtsvn setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/scripts:$LOGTALKHOME/integration setenv MANPATH $MANPATH:$LOGTALKHOME/man
If your lgtsvn directory is not in your home directory, adjust the paths above accordingly. Don't use relative paths such as ../ or ./ in the definition of the environment variables. Some Prolog compilers don't expand environment variables, resulting in "file not found" errors when attempting to use the Logtalk integration scripts.
Windows installation
Checkout the Logtalk development version into the directory C:\lgtsvn. Install Inno Setup 5.1.11 (or a later version) and open the C:\lgtsvn\scripts\windows\logtalk.iss file. Rebuild the Windows GUI installer and run it to install the Logtalk development version.
3. Running Logtalk
POSIX systems
You may run Logtalk by typing the name of the integration script with the .sh extension. For example, to run Logtalk using SWI-Prolog as the back-end compiler type swilgt.sh.
Windows systems
Use the shortcuts available from the Logtalk program group in the Start Menu.
4. Switching Between Installed Logtalk Versions
If you want to run both stable and development versions of Logtalk on a POSIX system, you may instead keep the default values for the environment variables LOGTALKHOME and LOGTALKUSER and use the logtalk_select command to switch between installed versions. Simply perform a svn checkout of the Logtalk development version and install it by following the steps:
$ cd lgtsvn/scripts $ sudo ./install.sh
The install.sh shell script accepts a prefix and thus can also be used non-administrative users. For example:
$ cd lgtsvn/scripts $ ./install.sh $HOME
Logtalk development versions are identified by the name that will be used once they become the next stable version. Thus, simply use the logtalk_version_select command to switch between versions. For example:
$ logtalk_version_select -l Available versions: lgt2372 lgt2373 lgt2374 lgt2375 lgt2376 $ sudo logtalk_version_select lgt2375 Switched to version: lgt2375
