PREREQUISITES

You must have already installed
 * Objective Caml 1.03 
    ftp://ftp.inria.fr/lang/caml-light

 * Tcl7.5/Tk4.1 or Tcl7.6/Tk4.2
    ftp://ftp.smli.com/pub/tcl or various mirrors

 * ocamltk41 (the library for interface Objective Caml to Tcl/Tk) 
    ftp://ftp.inria.fr/lang/caml-light/camltk/ocamltk41.tar.gz

Also, you need a modern make (gmake is good).

INSTALLATION INSTRUCTIONS

1- Extract the archive mmm40-src.tar.gz somewhere.
This creates the "mmm" directory.

2- Configure the system. This is trivial if ocamltk41 has been installed
properly. In the "mmm" directory, edit Makefile.config following the
instructions given there.

3- Build the system. From the "mmm" directory, do:
   make all
This creates the binary files "mmm", "mmm_remote", "htparse"

4- To be sure everything works well, you can try
   ./mmm

If it fails with error message
./mmm: can't load library 'libtk4.2.so'
or something similar, this means that you must set the LD_LIBRARY_PATH
in your shell environment, e.g.
$ export LD_LIBRARY_PATH=/usr/local/lib
% setenv LD_LIBRARY_PATH /usr/local/lib


5- You can now install MMM. Edit the mmm.sh shell script, and do:
     make install

6- Additional installation: 
  6a- MMM Development Kit (mdk): the interfaces to safe libraries, if you
intend to develop applets or modules. To install, do:
     make install-mdj

  6b- Modules examples. To compile, do:
     cd modules; make
You can copy these modules to your ~/.mmm directory. They will be
automatically loaded when you invoke mmm.
     mkdir ~/.mmm
     cd modules; cp *.cmo ~/.mmm

  6c- Applets examples. To compile, do:
     cd applets; make
You can then browser the various .hmtl files in the applets directory
to see the applets in action.

