~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2009-02-22 08:49:13 UTC
  • mfrom: (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090222084913-3i0uw2bhd0lgw0ok
* Uploading to unstable
* debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
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.
 
8
  performance.  gcc is the standard compiler under Linux, MacOS X,
 
9
  and many other systems.
9
10
 
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
12
 
  have major problems.
 
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/
13
15
 
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.
22
24
 
 
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
 
27
  have major problems.
 
28
 
23
29
 
24
30
INSTALLATION INSTRUCTIONS
25
31
 
100
106
        options for finding the header files, and "-dllibs" for finding
101
107
        the C libraries.
102
108
 
103
 
-binutils <directory>
104
 
        This option specifies where to find the GNU binutils (objcopy
105
 
        and nm) executables.
 
109
-as <assembler and options>     (default: determined automatically)
 
110
        The assembler to use for assembling ocamlopt-generated code.
 
111
 
 
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.
106
116
 
107
117
-verbose
108
118
        Verbose output of the configuration tests. Use it if the outcome
109
119
        of configure is not what you were expecting.
110
120
 
111
121
Examples:
112
 
    ./configure -prefix /usr/bin
 
122
 
 
123
  Standard installation in /usr/{bin,lib,man} instead of /usr/local:
 
124
    ./configure -prefix /usr
 
125
 
 
126
  Installation in /usr, man pages in section "l":
113
127
    ./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/manl
 
128
 
 
129
  On a MacOSX/Intel Core 2 or MacOSX/PowerPC host, to build a 64-bit version
 
130
  of OCaml:
 
131
    ./configure -cc "gcc -m64"
 
132
 
 
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"
 
135
 
 
136
  For Sun Solaris with the "acc" compiler:
114
137
    ./configure -cc "acc -fast" -libs "-lucb"
115
 
                    # For Sun Solaris with the acc compiler
 
138
 
 
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
 
141
 
118
142
 
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