[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">
|
---|
[b8660139] | 8 | <!ENTITY gmp-download-ftp "ftp://ftp.gnu.org/gnu/gmp/gmp-&gmp-version;.tar.bz2">
|
---|
| 9 | <!ENTITY gmp-md5sum "aa4a4534e8870ab8ba3c093239057cca">
|
---|
| 10 | <!ENTITY gmp-size "1.7 MB">
|
---|
| 11 | <!ENTITY gmp-buildsize "47.2 MB">
|
---|
| 12 | <!ENTITY gmp-time "1.0 SBU (additional 0.6 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 |
|
---|
[1039de3] | 58 | <para condition="html" role="usernotes">User Notes:
|
---|
| 59 | <ulink url="&blfs-wiki;/gmp"/></para>
|
---|
| 60 |
|
---|
[d0455a2] | 61 | </sect2>
|
---|
[8e75f8b9] | 62 |
|
---|
[d0455a2] | 63 | <sect2 role="installation">
|
---|
| 64 | <title>Installation of GMP</title>
|
---|
| 65 |
|
---|
[74390482] | 66 | <para>Install <application>GMP</application> by running
|
---|
[d0455a2] | 67 | the following commands:</para>
|
---|
| 68 |
|
---|
[cb4a114] | 69 | <screen><userinput>./configure --prefix=/usr --enable-cxx --enable-mpbsd &&
|
---|
[d0455a2] | 70 | make</userinput></screen>
|
---|
[8e75f8b9] | 71 |
|
---|
[520f6b4f] | 72 | <para>If you have <xref linkend="tetex"/> installed and you wish to create
|
---|
[b8660139] | 73 | alternate formats of the documentation, issue any or all of the following
|
---|
| 74 | commands:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput>make -C doc pdf &&
|
---|
| 77 | make -C doc ps &&
|
---|
| 78 | make -C doc html &&
|
---|
| 79 | texi2html -o doc/gmp_nochunks.html doc/gmp.texi &&
|
---|
| 80 | makeinfo --plaintext -o doc/gmp.txt doc/gmp.texi</userinput></screen>
|
---|
| 81 |
|
---|
[1e6a6d4d] | 82 | <para>To test the results, issue: <command>make check</command>.
|
---|
[cb4a114] | 83 | Owing to various reports of mis-compilations, the maintainer strongly
|
---|
[b8660139] | 84 | recommends running the test-suite and reporting any failures. The libraries
|
---|
[bccbdaea] | 85 | should not be used in a production environment if there are problems
|
---|
[b8660139] | 86 | running <command>make check</command>. An easy way to determine if all the
|
---|
| 87 | tests passed is to redirect the output of the tests to a file
|
---|
| 88 | (<command>make check >check.log 2>&1</command>) and issue
|
---|
| 89 | the following command:</para>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput>awk '/tests passed/{total+=$2} ; END{print total}' check.log</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | <para>139 should be returned.</para>
|
---|
[1e6a6d4d] | 94 |
|
---|
[d0455a2] | 95 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 96 |
|
---|
[d0455a2] | 97 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8e75f8b9] | 98 |
|
---|
[b8660139] | 99 | <para>If you created any of the alternate formats of the documentation,
|
---|
| 100 | install it using the following commands as the
|
---|
| 101 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/gmp-&gmp-version;/html &&
|
---|
| 104 | install -v -m644 doc/gmp.html/* /usr/share/doc/gmp-&gmp-version;/html &&
|
---|
| 105 | install -v -m644 doc/{isa_abi_headache,configuration} \
|
---|
| 106 | doc/*.{pdf,dvi,ps,html,txt} \
|
---|
| 107 | /usr/share/doc/gmp-&gmp-version;</userinput></screen>
|
---|
[d0455a2] | 108 | </sect2>
|
---|
[8e75f8b9] | 109 |
|
---|
[d0455a2] | 110 | <sect2 role="commands">
|
---|
| 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
| 113 | <para><parameter>--enable-cxx</parameter>: This parameter
|
---|
[74390482] | 114 | enables C++ support by building the
|
---|
[d0455a2] | 115 | <filename class="libraryfile">libgmpxx</filename> libraries.</para>
|
---|
[8e75f8b9] | 116 |
|
---|
[d0455a2] | 117 | <para><parameter>--enable-mpbsd</parameter>: This parameter
|
---|
[74390482] | 118 | enables building the Berkeley MP compatibility
|
---|
[d0455a2] | 119 | (<filename class="libraryfile">libmp</filename>) libraries.</para>
|
---|
[8e75f8b9] | 120 |
|
---|
[d0455a2] | 121 | </sect2>
|
---|
[8e75f8b9] | 122 |
|
---|
[d0455a2] | 123 | <sect2 role="content">
|
---|
| 124 | <title>Contents</title>
|
---|
| 125 |
|
---|
| 126 | <segmentedlist>
|
---|
| 127 | <segtitle>Installed Programs</segtitle>
|
---|
| 128 | <segtitle>Installed Libraries</segtitle>
|
---|
| 129 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 130 |
|
---|
[d0455a2] | 131 | <seglistitem>
|
---|
| 132 | <seg>None</seg>
|
---|
[1039de3] | 133 | <seg>libgmp.{so,a}, libgmpxx.{so,a} and libmp.{so,a}</seg>
|
---|
[d0455a2] | 134 | <seg>None</seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
[8e75f8b9] | 137 |
|
---|
[d0455a2] | 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 142 |
|
---|
[d0455a2] | 143 | <varlistentry id="libgmp">
|
---|
[1039de3] | 144 | <term><filename class='libraryfile'>libgmp.{so,a}</filename></term>
|
---|
[d0455a2] | 145 | <listitem>
|
---|
[74390482] | 146 | <para>contains functions to operate on signed integers, rational
|
---|
[d0455a2] | 147 | numbers, and floating point numbers.</para>
|
---|
| 148 | <indexterm zone="gmp libgmp">
|
---|
[1039de3] | 149 | <primary sortas="c-libgmp">libgmp.{so,a}</primary>
|
---|
[d0455a2] | 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
[8e75f8b9] | 153 |
|
---|
[d0455a2] | 154 | </variablelist>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
[777e407] | 157 |
|
---|
| 158 | </sect1>
|
---|