-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.MACOSX
69 lines (49 loc) · 2.74 KB
/
README.MACOSX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
The directions below outline the process for compiling MetaPRL under Mac
OS X. They were developed by Brian Emre Aydemir (emre /@/ cs.caltech.edu)
and Nathan Gray (n8gray /@/ cs.caltech.edu).
Note: All the commands below need to be run from a command line, such as
the Terminal program in /Applications/Utilities.
SATISFYING DEPENDENCIES
=======================
1. A C compiler, such as the one provided with the Xcode development
tools, is necessary to build MetaPRL. Xcode may already be installed
in /Developer/Applications/Xcode. Otherwise, you will need to
install Xcode using the installer in /Applications/Installers. You
can "restore" the installer through the Software Restore utility (in
/Applications/Utilities or on a Mac OS X install disc) if necessary.
If all else fails, you can download Xcode from the Apple Developer
Connection. See <http://developer.apple.com/membership/index.html>
for more information.
2. MetaPRL requires the OCaml programming language tools version 4.11.
Follow the directions at
<https://ocaml.org/docs/install.html>
for installing OCaml.
3. Make sure that the location that you chose to put the binaries in is
in your path.
4. The OMake build tool is used to build MetaPRL. OMake can be obtained
from <http://projects.camlcity.org/projects/omake.html>. Follow the
included directions for building and installing OMake.
BUILDING METAPRL
================
5. Change into the MetaPRL source directory (the directory with this file)
and run "omake mk/config". A new "config" file should be created in the
mk/ directory. Go ahead and edit it (directions are provided in the file
itself).
If OCaml was not installed into /usr, you will need to create a
file mk/config.local and define CAMLLIB and CAMLP5LIB to point to where
the ocaml and ocaml/camlp4 library directories are located. For example,
config.local may contain the following lines:
CAMLLIB=/usr/local/lib/ocaml
CAMLP5LIB=/usr/local/lib/ocaml/camlp5
6. If you have Fink installed and want readline and ncurses support in
MetaPRL (for, e.g. command history and editing) you might want to add
"-I/sw/include -L/sw/lib" to the CCC= line in mk/config and
"OCAML_LINK_FLAGS=-cclib -L/sw/lib" to mk/config.local. If you don't have
readline and ncurses, you need to disable them in mk/config.
7. From the MetaPRl source directory (the directory with this file), run
"omake" to build MetaPRL.
8. To run the MetaPRL toploop, run "editor/ml/mp". It may be
more convenient to run "editor/ml/mpxterm" as this opens an xterm
with an appropriate font (you'll need to have an X11 server installed
and running for this to work). A quick overview of the toploop can
be found in QUICKSTART.