[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[85a135f] | 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">
|
---|
[03ecb3f9] | 11 | <!ENTITY gmp-buildsize "60.8 MB">
|
---|
| 12 | <!ENTITY gmp-time "0.88 SBU (additional 0.81 SBU to run the testsuite)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[971ca3d] | 15 | <sect1 id="gmp" xreflabel="GMP-&gmp-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="gmp.html"?>
|
---|
[971ca3d] | 21 | <title>GMP-&gmp-version;</title>
|
---|
[03ecb3f9] | 22 | <indexterm zone="gmp">
|
---|
| 23 | <primary sortas="a-GMP">GMP</primary></indexterm>
|
---|
[777e407] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application><acronym>GMP</acronym></application></title>
|
---|
[5af8bf73] | 27 |
|
---|
[52d29f7] | 28 | <para>The <application><acronym>GMP</acronym></application> package
|
---|
[5091d1a] | 29 | contains math libraries. These have useful functions for arbitrary precision
|
---|
[52d29f7] | 30 | arithmetic.</para>
|
---|
[5af8bf73] | 31 |
|
---|
[52d29f7] | 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&gmp-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&gmp-download-ftp;"/></para></listitem>
|
---|
[85a135f] | 38 | <listitem><para>Download MD5 sum: &gmp-md5sum;</para></listitem>
|
---|
[52d29f7] | 39 | <listitem><para>Download size: &gmp-size;</para></listitem>
|
---|
[5091d1a] | 40 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 41 | &gmp-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time:
|
---|
| 43 | &gmp-time;</para></listitem></itemizedlist>
|
---|
| 44 | </sect3>
|
---|
[5af8bf73] | 45 |
|
---|
[52d29f7] | 46 | </sect2>
|
---|
| 47 |
|
---|
| 48 | <sect2>
|
---|
| 49 | <title>Installation of <application><acronym>GMP</acronym></application></title>
|
---|
[5af8bf73] | 50 |
|
---|
| 51 | <para>Install <application><acronym>GMP</acronym></application> by running
|
---|
| 52 | the following commands:
|
---|
[52d29f7] | 53 | </para>
|
---|
[5af8bf73] | 54 |
|
---|
[6c76a22f] | 55 | <screen><userinput><command>./configure --prefix=/usr --enable-cxx \
|
---|
| 56 | --enable-mpbsd --enable-mpfr &&
|
---|
[03ecb3f9] | 57 | make</command></userinput></screen>
|
---|
| 58 |
|
---|
| 59 | <para>Now, as the root user:</para>
|
---|
| 60 |
|
---|
| 61 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[5af8bf73] | 62 |
|
---|
[52d29f7] | 63 | </sect2>
|
---|
| 64 |
|
---|
[5091d1a] | 65 | <sect2>
|
---|
| 66 | <title>Command explanations</title>
|
---|
| 67 |
|
---|
[6c76a22f] | 68 | <para><parameter>--enable-cxx</parameter>: This parameter
|
---|
| 69 | enables C++ support by building the
|
---|
[5091d1a] | 70 | <filename class="libraryfile">libgmpxx</filename> libraries.</para>
|
---|
| 71 |
|
---|
[6c76a22f] | 72 | <para><parameter>--enable-mpbsd</parameter>: This parameter
|
---|
| 73 | enables building the Berkeley MP compatibility
|
---|
[5091d1a] | 74 | (<filename class="libraryfile">libmp</filename>) libraries.</para>
|
---|
| 75 |
|
---|
[6c76a22f] | 76 | <para><parameter>--enable-mpfr</parameter>: This parameter
|
---|
| 77 | enables building the Multiple Precision
|
---|
[5091d1a] | 78 | Floating-Point Reliable (<filename class="libraryfile">libmpfr.a</filename>)
|
---|
| 79 | library.</para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
[52d29f7] | 83 | <sect2>
|
---|
| 84 | <title>Contents</title>
|
---|
[5af8bf73] | 85 |
|
---|
[03ecb3f9] | 86 | <segmentedlist>
|
---|
| 87 | <segtitle>Installed Programs</segtitle>
|
---|
| 88 | <segtitle>Installed Libraries</segtitle>
|
---|
| 89 | <segtitle>Installed Directories</segtitle>
|
---|
| 90 |
|
---|
| 91 | <seglistitem>
|
---|
| 92 | <seg>None</seg>
|
---|
| 93 | <seg>libgmp.[so,a], libgmpxx.[so,a], libmp.[so,a] and libmpfr.a</seg>
|
---|
| 94 | <seg>None</seg>
|
---|
| 95 | </seglistitem>
|
---|
| 96 | </segmentedlist>
|
---|
| 97 |
|
---|
| 98 | <variablelist>
|
---|
| 99 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 100 | <?dbfo list-presentation="list"?>
|
---|
| 101 |
|
---|
| 102 | <varlistentry id="libgmp">
|
---|
| 103 | <term><filename class='libraryfile'>libgmp.[so,a]</filename></term>
|
---|
| 104 | <listitem><para>contains functions to operate on signed integers, rational
|
---|
| 105 | numbers, and floating point numbers.</para>
|
---|
| 106 | <indexterm zone="gmp libgmp">
|
---|
| 107 | <primary sortas="c-libgmp">libgmp.[so,a]</primary>
|
---|
| 108 | </indexterm></listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 | </variablelist>
|
---|
[5af8bf73] | 111 |
|
---|
[52d29f7] | 112 | </sect2>
|
---|
[777e407] | 113 |
|
---|
| 114 | </sect1>
|
---|
[52d29f7] | 115 |
|
---|