7 The Isabelle repository provides the administrative tool "build_polyml", |
7 The Isabelle repository provides the administrative tool "build_polyml", |
8 which can be used in the polyml component directory as follows. |
8 which can be used in the polyml component directory as follows. |
9 |
9 |
10 * Linux: |
10 * Linux: |
11 |
11 |
12 $ isabelle build_polyml -m32 -s sha1 src --with-gmp |
12 $ isabelle build_polyml -m32 -s sha1 src |
13 $ isabelle build_polyml -m64 -s sha1 src --with-gmp |
13 $ isabelle build_polyml -m64 -s sha1 src |
14 |
14 |
15 * Windows (Cygwin shell) |
15 * Windows (Cygwin shell) |
16 |
16 |
17 $ isabelle build_polyml -M /cygdrive/c/msys64 -m32 -s sha1 src --with-gmp |
17 $ isabelle build_polyml -M /cygdrive/c/msys64 -m32 -s sha1 src |
18 $ isabelle build_polyml -M /cygdrive/c/msys64 -m64 -s sha1 src --with-gmp |
18 $ isabelle build_polyml -M /cygdrive/c/msys64 -m64 -s sha1 src |
19 |
19 |
20 * Mac OS X: |
20 * Mac OS X: |
21 |
21 |
22 $ isabelle build_polyml -m32 -s sha1 src --with-gmp |
22 $ isabelle build_polyml -m32 -s sha1 src |
23 $ isabelle build_polyml -m64 -s sha1 src --with-gmp |
23 $ isabelle build_polyml -m64 -s sha1 src |
24 |
24 |
25 |
25 |
26 Building libgmp on Mac OS X |
26 Building libgmp on Mac OS X |
27 =========================== |
27 =========================== |
28 |
28 |
29 The GNU Multiple Precision Arithmetic Library is not included in Mac OS X |
29 The build_polyml invocations above implicitly use the GNU Multiple Precision |
30 by default, but it can be built from sources as follows. |
30 Arithmetic Library (libgmp), but that is not available on Mac OS X by default. |
|
31 Appending "--without-gmp" to the command-line omits this library. Building |
|
32 libgmp properly works as follows (library headers and binaries will be placed |
|
33 in /usr/local). |
31 |
34 |
32 * Download: |
35 * Download: |
33 |
36 |
34 $ curl https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz | xz -dc | tar xf - |
37 $ curl https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz | xz -dc | tar xf - |
35 $ cd gmp-6.1.2 |
38 $ cd gmp-6.1.2 |