This page gives hints on installing Caml Light and Objective Caml on a machine under Mac OS X.
Caml Light and Objective Caml are command-line tools. To use them, you will need to open a terminal window. Use the Terminal application which is in /Applications/Utilities/.
In order to use Caml Light or Objective Caml, you need to
increase your stack size limit. You also need to put "/usr/local/bin"
in your PATH variable. Paste the following commands into a
terminal window:
Then close your terminal window and open a new one (the changes
do not take effect in the windows that are already open).
echo 'limit stacksize 64M' >>~/.tcshrc
echo 'setenv PATH "${PATH}:/usr/local/bin"' >>~/.tcshrc
The easiest way to install Caml Light or Objective Caml is to use the binary packages below. They have been compiled with Mac OS 10.2.4.
The hard way is to recompile from source. This is what you need to do if you want to use extra libraries (X-window graphics, Tcl/tk, etc.)
You should use (at least) version 3.06 of Objective Caml. Version 3.04 works, but it has annoying bugs on Mac OS X.
tar zxf
ocaml-3.06.tar.gz
)ocaml-3.06
directorypatch -p0 <
ocaml-3.06-macosx-5.patch
If you have Tcl/Tk installed through Fink, and you want to use it with O'Caml, you will have to configure with:
./configure --tkdefs -I/sw/include
tar zxf
cl75unix.tar.gz
)cl75
directorycd cl75
)patch -p0 < caml-light-macosx-patch-2.txt
)
graphics
and camltk4
in
contrib/Makefile
before you compile the packages
(see step 8 of INSTALL)