This chapter explains how to install Caml Light on your machine.
zcat cl7unix.tar.Z | 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.7 #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.7 #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.
In the following, we assume that the distribution files resides in drive A:, and that the hard disk on which you are installing Caml Light is drive C:. If this is not the case, replace A: and C: by the appropriate drives.
Change to a directory on the hard disk where the Caml Light distribution will reside. The installation will create a subdirectory named CAML in that directory, and put all the Caml Light files in CAML. In the following, we assume that you will be installing from C:\, thus putting all Caml Light files in C:\CAML. Execute the following commands:
C: cd \ A:pkunzip -d A:cl71win(Be careful not to omit the -d option to pkunzip.)
The remainder of the installation procedure is described in the CAML\INSTALL.TXT file contained in the distribution.