[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 |
|
---|
[d0455a2] | 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 "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;">
|
---|
[d0455a2] | 16 | <?dbhtml filename="gmp.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[d0455a2] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[8e75f8b9] | 22 |
|
---|
[d0455a2] | 23 | <title>GMP-&gmp-version;</title>
|
---|
[8e75f8b9] | 24 |
|
---|
[d0455a2] | 25 | <indexterm zone="gmp">
|
---|
| 26 | <primary sortas="a-GMP">GMP</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GMP</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[d0455a2] | 32 | <para>The <application>GMP</application> package
|
---|
| 33 | contains math libraries. These have useful functions for arbitrary precision
|
---|
| 34 | arithmetic.</para>
|
---|
[8e75f8b9] | 35 |
|
---|
[d0455a2] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&gmp-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&gmp-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &gmp-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &gmp-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &gmp-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &gmp-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
[8e75f8b9] | 57 |
|
---|
[d0455a2] | 58 | </sect2>
|
---|
[8e75f8b9] | 59 |
|
---|
[d0455a2] | 60 | <sect2 role="installation">
|
---|
| 61 | <title>Installation of GMP</title>
|
---|
| 62 |
|
---|
[74390482] | 63 | <para>Install <application>GMP</application> by running
|
---|
[d0455a2] | 64 | the following commands:</para>
|
---|
| 65 |
|
---|
[cb4a114] | 66 | <screen><userinput>./configure --prefix=/usr --enable-cxx --enable-mpbsd &&
|
---|
[d0455a2] | 67 | make</userinput></screen>
|
---|
[8e75f8b9] | 68 |
|
---|
[1e6a6d4d] | 69 | <para>To test the results, issue: <command>make check</command>.
|
---|
[cb4a114] | 70 | Owing to various reports of mis-compilations, the maintainer strongly
|
---|
| 71 | recommends running the test-suite and report any failures. The libraries
|
---|
| 72 | should not be used in a production environment if there are problems
|
---|
| 73 | running <command>make check</command>.</para>
|
---|
[1e6a6d4d] | 74 |
|
---|
[d0455a2] | 75 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 76 |
|
---|
[d0455a2] | 77 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8e75f8b9] | 78 |
|
---|
[d0455a2] | 79 | </sect2>
|
---|
[8e75f8b9] | 80 |
|
---|
[d0455a2] | 81 | <sect2 role="commands">
|
---|
| 82 | <title>Command Explanations</title>
|
---|
| 83 |
|
---|
| 84 | <para><parameter>--enable-cxx</parameter>: This parameter
|
---|
[74390482] | 85 | enables C++ support by building the
|
---|
[d0455a2] | 86 | <filename class="libraryfile">libgmpxx</filename> libraries.</para>
|
---|
[8e75f8b9] | 87 |
|
---|
[d0455a2] | 88 | <para><parameter>--enable-mpbsd</parameter>: This parameter
|
---|
[74390482] | 89 | enables building the Berkeley MP compatibility
|
---|
[d0455a2] | 90 | (<filename class="libraryfile">libmp</filename>) libraries.</para>
|
---|
[8e75f8b9] | 91 |
|
---|
[d0455a2] | 92 | </sect2>
|
---|
[8e75f8b9] | 93 |
|
---|
[d0455a2] | 94 | <sect2 role="content">
|
---|
| 95 | <title>Contents</title>
|
---|
| 96 |
|
---|
| 97 | <segmentedlist>
|
---|
| 98 | <segtitle>Installed Programs</segtitle>
|
---|
| 99 | <segtitle>Installed Libraries</segtitle>
|
---|
| 100 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 101 |
|
---|
[d0455a2] | 102 | <seglistitem>
|
---|
| 103 | <seg>None</seg>
|
---|
[cb4a114] | 104 | <seg>libgmp.[so,a], libgmpxx.[so,a] and libmp.[so,a]</seg>
|
---|
[d0455a2] | 105 | <seg>None</seg>
|
---|
| 106 | </seglistitem>
|
---|
| 107 | </segmentedlist>
|
---|
[8e75f8b9] | 108 |
|
---|
[d0455a2] | 109 | <variablelist>
|
---|
| 110 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 111 | <?dbfo list-presentation="list"?>
|
---|
| 112 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 113 |
|
---|
[d0455a2] | 114 | <varlistentry id="libgmp">
|
---|
| 115 | <term><filename class='libraryfile'>libgmp.[so,a]</filename></term>
|
---|
| 116 | <listitem>
|
---|
[74390482] | 117 | <para>contains functions to operate on signed integers, rational
|
---|
[d0455a2] | 118 | numbers, and floating point numbers.</para>
|
---|
| 119 | <indexterm zone="gmp libgmp">
|
---|
| 120 | <primary sortas="c-libgmp">libgmp.[so,a]</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
[8e75f8b9] | 124 |
|
---|
[d0455a2] | 125 | </variablelist>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
[777e407] | 128 |
|
---|
| 129 | </sect1>
|
---|