If you install Cameleon from the sources, follow the explanations
below. If you install from a pre-compild package, you can ignore this
part.
Unpack the source archive with the following command :
tar xfz cameleon_1_1.tar.gz
This will create a cameleon-1.1 directory, called the root directory.
Change to this directory.
Note for the impatient:
If you're used to install procedures, this one is not original, and
you can run the following commands to install Cameleon :
./configure [--includedir=/absolute/path/to/compiled/ocaml/sources]
(use the --includedir option if you have the compiled sources \\
of OCaml somewhere)
make depend
make
make doc
make install
2.1 Pre-requisites
In order to compile, you need to have OCaml 3.06 (or more)
and LablGtk 1.2.5 (or more) installed.
In order to compile the graphical toplevel and Epeire, you must
have the compiled sources of the OCaml compiler somewhere.
2.2 Configuration
Use the ./configure script to configure the sources according
to your OCaml installation.
The configure script accepts the following options :
-
-prefix <dir>
-
Will make the files to be installed in subdirectories of <dir>
instead of in the OCaml directory.
- -libdir <dir>
-
Will make the compiled libraries to be installed in <dir>
instead of the cameleon directory in the OCaml library directory.
- -bindir <dir>
-
Will make the executables to be installed in <dir>
instead of the bin directory of the prefix directory.
- -mandir <dir>
-
Will make the man pages to be installed in <dir>
instead of the man directory of the prefix directory.
- --datadir=<dir>
-
Will use <dir> to store templates, plug-ins and pixmaps,
respectively in the templates, plugins and pixmaps directories.
The default directory is prefix/share.
- --includedir=<dir>
-
Where <dir> must be the absolute path name to the OCaml compiled sources.
Use this option if you want to build the graphical toplevel and Epeire,
the graphical debugger, which both need to be linked with a part of the OCaml compiler.
2.3 Compilation
Once the configure script has been run, you can compile
Cameleon with the following commands:
make depend
make
Then you should create some documentation files :
make doc
2.4 Installation
Finally, if you have the permission to write in the
directories specified to the configure script,
the command
make install
will install the executables, libraries, man pages, templates
and plugins.