This chapter explains how to install Caml Light on your machine.
zcat cl74unix.tar.gz | tar xBf -This extracts the source files in the current directory. The file INSTALL contains complete instructions on how to configure, compile and install Caml Light. Read it and follow the instructions.
To test the installation, double-click on the application Caml Light. The ``Caml Light output'' window should display something like
> Caml Light version 0.74 #In the ``Caml Light input'' window, enter 1+2;; and press the Return key. The ``Caml Light output'' window should display:
> Caml Light version 0.74 #1+2;; - : int = 3 #Select ``Quit'' from the ``File'' menu to return to the Finder.
If you have MPW, you can install the batch compilation tools as follows. The tools and scripts from the tools folder must reside in a place where MPW will find them as commands. There are two ways to achieve this result: either copy the files in the tools folder to the Tools or the Scripts folder in your MPW folder; or keep the files in the tools folder and add the following line to your UserStartup file (assuming Caml Light resides in folder Caml Light on the disk named My HD):
Set Commands "{Commands},My HD:Caml Light:tools:"In either case, you now have to edit the camlc script, and replace the string
Macintosh HD:Caml Light:lib:(in the first line) with the actual pathname of the lib folder. For example, if you put Caml Light in folder Caml Light on the disk named My HD, the first line of camlc should read:
Set stdlib "My HD:Caml Light:lib:"
Here is one commonly encountered problem.