6
6
* The GNU C compiler gcc is recommended, as the bytecode
7
7
interpreter takes advantage of gcc-specific features to enhance
8
performance. gcc is the standard compiler under Linux, MacOS X,
9
and many other systems.
10
* Under HP/UX, the GNU C compiler gcc, the GNU assembler gas, and GNU make
11
are all *required*. The vendor-provided compiler, assembler and make
11
* Under MacOS X 10.5, you need version 3.1 or later of the XCode
12
development tools. The version of XCode found on MacOS X 10.5
13
installation media causes linking problems. XCode updates
14
are available free of charge at http://developer.apple.com/tools/xcode/
14
16
* Under MacOS X up to version 10.2.8, you must raise the limit on the
15
17
stack size with one of the following commands:
20
22
* If you do not have write access to /tmp, you should set the environment
21
23
variable TMPDIR to the name of some other temporary directory.
25
* Under HP/UX, the GNU C compiler gcc, the GNU assembler gas, and GNU make
26
are all *required*. The vendor-provided compiler, assembler and make
24
30
INSTALLATION INSTRUCTIONS
100
106
options for finding the header files, and "-dllibs" for finding
103
-binutils <directory>
104
This option specifies where to find the GNU binutils (objcopy
109
-as <assembler and options> (default: determined automatically)
110
The assembler to use for assembling ocamlopt-generated code.
112
-aspp <assembler and options> (default: determined automatically>
113
The assembler to use for assembling the parts of the
114
run-time system manually written in assembly language.
115
This assembler must preprocess its input with the C preprocessor.
108
118
Verbose output of the configuration tests. Use it if the outcome
109
119
of configure is not what you were expecting.
112
./configure -prefix /usr/bin
123
Standard installation in /usr/{bin,lib,man} instead of /usr/local:
124
./configure -prefix /usr
126
Installation in /usr, man pages in section "l":
113
127
./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/manl
129
On a MacOSX/Intel Core 2 or MacOSX/PowerPC host, to build a 64-bit version
131
./configure -cc "gcc -m64"
133
On a Linux x86/64 bits host, to build a 32-bit version of OCaml:
134
./configure -cc "gcc -m32" -as "as --32" -aspp "gcc -m32 -c"
136
For Sun Solaris with the "acc" compiler:
114
137
./configure -cc "acc -fast" -libs "-lucb"
115
# For Sun Solaris with the acc compiler
139
For AIX 4.3 with the IBM compiler xlc:
116
140
./configure -cc "xlc_r -D_AIX43 -Wl,-bexpall,-brtl -qmaxmem=8192"
117
# For AIX 4.3 with the IBM compiler
119
143
If something goes wrong during the automatic configuration, or if the
120
144
generated files cause errors later on, then look at the template files