-
Download
Caml Light 0.75.
- Expand it:
tar xpfvz cl75unix.tar.gz
- Download the latest release of
OchaCaml.
(Or see all the versions in the download directory.)
- Expand it:
tar xpfvz OchaCaml.tar.gz
- Apply patch:
patch -p0 < OchaCaml/OchaCaml.diff
- Go to src directory:
cd cl75/src
- For Cygwin only: Delete two files:
rm camlrun camlyacc
- For Cygwin only: Insert two const
into line 50 of runtime/sys.c to read:
extern const char * const sys_errlist [];
- Compile:
make configure
make world
- If sed complains illegal byte sequence,
set the environment variable LANG to ja_JP.eucJP.
- If error occurs, try edit line 12 of
Makefile as follows:
-
If compilation of arg.mli fails, add
-fno-strict-aliasing to OPTS.
(cf. this page.)
- If gcc complains
"unrecognized option '-no-cpp-precomp'", remove the option
from OPTS.
- We do not recommend to run make install, because
OchaCaml is still under heavy development.
Instead, use the following shell script (also in the distribution)
to launch OchaCaml residing in the src directory.
- Adjust the third line of OchaCaml/ochacaml to your
environment.
- Launch OchaCaml by executing OchaCaml/ochacaml.
One can also install the shell script ochacaml to an
appropriate place.