1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gmp-download-http "http://ftp.gnu.org/gnu/gmp/gmp-&gmp-version;.tar.bz2">
|
---|
8 | <!ENTITY gmp-download-ftp "ftp://ftp.gnu.org/gnu/gmp/gmp-&gmp-version;.tar.bz2">
|
---|
9 | <!ENTITY gmp-md5sum "0aa7d3b3f5b5ec5951e7dddd6f65e891">
|
---|
10 | <!ENTITY gmp-size "1.6 MB">
|
---|
11 | <!ENTITY gmp-buildsize "34 MB">
|
---|
12 | <!ENTITY gmp-time "0.91 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gmp" xreflabel="GMP-&gmp-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="gmp.html"?>
|
---|
21 | <title>GMP-&gmp-version;</title>
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Introduction to <application><acronym>GMP</acronym></application></title>
|
---|
25 |
|
---|
26 | <para>The <application><acronym>GMP</acronym></application> package
|
---|
27 | contains math libraries. These have useful functions for arbitrary precision
|
---|
28 | arithmetic.</para>
|
---|
29 |
|
---|
30 | <sect3><title>Package information</title>
|
---|
31 | <itemizedlist spacing='compact'>
|
---|
32 | <listitem><para>Download (HTTP): <ulink
|
---|
33 | url="&gmp-download-http;"/></para></listitem>
|
---|
34 | <listitem><para>Download (FTP): <ulink
|
---|
35 | url="&gmp-download-ftp;"/></para></listitem>
|
---|
36 | <listitem><para>Download MD5 sum: &gmp-md5sum;</para></listitem>
|
---|
37 | <listitem><para>Download size: &gmp-size;</para></listitem>
|
---|
38 | <listitem><para>Estimated disk space required:
|
---|
39 | &gmp-buildsize;</para></listitem>
|
---|
40 | <listitem><para>Estimated build time:
|
---|
41 | &gmp-time;</para></listitem></itemizedlist>
|
---|
42 | </sect3>
|
---|
43 |
|
---|
44 | </sect2>
|
---|
45 |
|
---|
46 | <sect2>
|
---|
47 | <title>Installation of <application><acronym>GMP</acronym></application></title>
|
---|
48 |
|
---|
49 | <para>Install <application><acronym>GMP</acronym></application> by running
|
---|
50 | the following commands:
|
---|
51 | </para>
|
---|
52 |
|
---|
53 | <screen><userinput><command>./configure --prefix=/usr --enable-cxx \
|
---|
54 | --enable-mpbsd --enable-mpfr &&
|
---|
55 | make &&
|
---|
56 | make install</command></userinput></screen>
|
---|
57 |
|
---|
58 | </sect2>
|
---|
59 |
|
---|
60 | <sect2>
|
---|
61 | <title>Command explanations</title>
|
---|
62 |
|
---|
63 | <para><parameter>--enable-cxx</parameter>: This parameter
|
---|
64 | enables C++ support by building the
|
---|
65 | <filename class="libraryfile">libgmpxx</filename> libraries.</para>
|
---|
66 |
|
---|
67 | <para><parameter>--enable-mpbsd</parameter>: This parameter
|
---|
68 | enables building the Berkeley MP compatibility
|
---|
69 | (<filename class="libraryfile">libmp</filename>) libraries.</para>
|
---|
70 |
|
---|
71 | <para><parameter>--enable-mpfr</parameter>: This parameter
|
---|
72 | enables building the Multiple Precision
|
---|
73 | Floating-Point Reliable (<filename class="libraryfile">libmpfr.a</filename>)
|
---|
74 | library.</para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2>
|
---|
79 | <title>Contents</title>
|
---|
80 |
|
---|
81 | <para>The <application><acronym>GMP</acronym></application> package contains
|
---|
82 | <filename class="libraryfile">libgmp</filename> and
|
---|
83 | <filename class="libraryfile">libmp</filename> libraries.</para>
|
---|
84 |
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2><title>Description</title>
|
---|
88 |
|
---|
89 | <sect3><title>libgmp and libmp libraries</title>
|
---|
90 | <para><filename class="libraryfile">libgmp</filename> and
|
---|
91 | <filename class="libraryfile">libmp</filename> libraries contain functions to
|
---|
92 | operate on signed integers, rational numbers, and floating point
|
---|
93 | numbers.</para></sect3>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | </sect1>
|
---|
98 |
|
---|