PAKCS: The Portland Aachen Kiel Curry System
Installation Instructions
The current version of PAKCS runs on Unix-based platforms
and has been tested under SunOS, Linux, and Mac OS X.
If you want to install and run the complete system
on your computer, you need the following software:
-
SICStus-Prolog (Version 3 #5
or higher) (recommended)
-
SWI-Prolog
(if you do not have SICStus-Prolog, but then the execution is less
efficient and some functionality (e.g., constraint solvers) is
not available)
How to generate and install the PAKCS kernel:
-
Go into the main directory of PAKCS (which contains
this file). In the following, we assume that pakcshome
is the name of this directory.
-
If you have the executables sicstus (for SICStus-Prolog)
or pl (for SWI-Prolog)
in your path, execute "make" which installs PAKCS
(after asking you to confirm the values for java and sicstus).
The values for sicstus or pl are stored
in the home directory in file .pakcsinitrc so that they are
available for future installations of new versions of PAKCS.
-
Otherwise, modify in the shell script
"pakcshome/bin/.pakcs_variables"
the definition of the variables SICSTUS or SWI
according to your local installation.
If both variables are undefined,
the Curry2Prolog compiler system is not installed (i.e.,
only the front-end is installed).
-
If you install PAKCS from the source code distribution, you need also the
Glasgow Haskell Compiler
(executable
ghc
) to compile the front end of PAKCS.
The make script will ask you for it.
-
Now, install PAKCS by "make"
(if you have already an older installation of PAKCS, do "make clean" before).
-
Add the directory "pakcshome/bin"
to your path, e.g., by the command
export PATH=$PATH:pakcshome/bin
in the bash.
-
Now you can start the PAKCS/Curry2Prolog compiler system via the commands
"pakcs" or "curry2prolog".
-
If you want, you can also execute "make libdoc"
to generate a local version of the documentation of all system libraries
by the CurryDoc tool into the directory
"pakcshome/lib/CDOC".
However, this is only necessary if you want to work offline since
you can also access the documentation online at
http://www.informatik.uni-kiel.de/~pakcs/lib/.
-
You can configure the behavior of PAKCS by various setting
in a "pakcsrc" file. For doing so, copy the file
pakcshome/pakcsrc as ".pakcsrc"
into you home directory and modify the settings.
How to install additional packages:
The distribution of PAKCS contains various additional packages
and libraries. Some require additional software packages that are
described below.
-
If you want to use the library for GUI programming in Curry
(pakcshome/lib/GUI.curry), you need also a
Tcl/Tk implementation (including the windowing shell wish)
which can be downloaded
here.
In this case, the windowing shell wish must be
in your path (or you can also modify the definition of the
function openWish in the library GUI.curry).
-
If you want to use the DaVinci library for the visualization of graphs
(pakcshome/lib/DaVinci.curry), you need also an
installed daVinci system which can be downloaded
here.
In this case, you have to modify the definition of the constant
dvHome in the library pakcshome/lib/DaVinci.curry
according to the installation path of daVinci.
Michael Hanus