1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 "7ce52531644e6d12f16911b7e3151f3f">
|
---|
10 | <!ENTITY gmp-size "1.7 MB">
|
---|
11 | <!ENTITY gmp-buildsize "36 MB (additional 11 MB for alternative documentation)">
|
---|
12 | <!ENTITY gmp-time "1.0 SBU (additional 0.6 SBU to run the testsuite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gmp" xreflabel="GMP-&gmp-version;">
|
---|
16 | <?dbhtml filename="gmp.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>GMP-&gmp-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="gmp">
|
---|
26 | <primary sortas="a-GMP">GMP</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to GMP</title>
|
---|
31 |
|
---|
32 | <para>The <application>GMP</application> package
|
---|
33 | contains math libraries. These have useful functions for arbitrary precision
|
---|
34 | arithmetic.</para>
|
---|
35 |
|
---|
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>
|
---|
57 |
|
---|
58 | <para condition="html" role="usernotes">User Notes:
|
---|
59 | <ulink url="&blfs-wiki;/gmp"/></para>
|
---|
60 |
|
---|
61 | </sect2>
|
---|
62 |
|
---|
63 | <sect2 role="installation">
|
---|
64 | <title>Installation of GMP</title>
|
---|
65 |
|
---|
66 | <para>Install <application>GMP</application> by running
|
---|
67 | the following commands:</para>
|
---|
68 |
|
---|
69 | <screen><userinput>./configure --prefix=/usr --enable-cxx --enable-mpbsd &&
|
---|
70 | make</userinput></screen>
|
---|
71 |
|
---|
72 | <para>If you wish to create alternate formats of the documentation
|
---|
73 | (Postscript, PDF and chunked HTML versions require a
|
---|
74 | <xref linkend="texlive"/> installation), issue any or all of the following
|
---|
75 | commands:</para>
|
---|
76 |
|
---|
77 | <screen><userinput>make -C doc pdf &&
|
---|
78 | make -C doc ps &&
|
---|
79 | make -C doc html &&
|
---|
80 | texi2html -o doc/gmp_nochunks.html doc/gmp.texi &&
|
---|
81 | makeinfo --plaintext -o doc/gmp.txt doc/gmp.texi</userinput></screen>
|
---|
82 |
|
---|
83 | <para>To test the results, issue: <command>make check</command>.
|
---|
84 | Due to various reports of mis-compilations, the maintainer strongly
|
---|
85 | recommends running the test suite and reporting any failures. The libraries
|
---|
86 | should not be used in a production environment if there are problems
|
---|
87 | running <command>make check</command>. An easy way to determine if all the
|
---|
88 | tests passed is to redirect the output of the tests to a file
|
---|
89 | (<command>make check >check.log 2>&1</command>) and issue
|
---|
90 | the following command:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>awk '/tests passed/{total+=$2} ; END{print total}' check.log</userinput></screen>
|
---|
93 |
|
---|
94 | <para>139 should be returned.</para>
|
---|
95 |
|
---|
96 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
97 |
|
---|
98 | <screen role="root"><userinput>make install &&
|
---|
99 | install -v -m755 -d /usr/share/doc/gmp-&gmp-version; &&
|
---|
100 | install -v -m644 doc/{isa_abi_headache,configuration} doc/*.html \
|
---|
101 | /usr/share/doc/gmp-&gmp-version;</userinput></screen>
|
---|
102 |
|
---|
103 | <para>If you created any of the alternate formats of the documentation,
|
---|
104 | install it using the following commands as the
|
---|
105 | <systemitem class="username">root</systemitem> user:</para>
|
---|
106 |
|
---|
107 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/gmp-&gmp-version;/html &&
|
---|
108 | install -v -m644 doc/gmp.html/* \
|
---|
109 | /usr/share/doc/gmp-&gmp-version;/html &&
|
---|
110 | install -v -m644 doc/gmp.{pdf,dvi,ps,html,txt} \
|
---|
111 | /usr/share/doc/gmp-&gmp-version;</userinput></screen>
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="commands">
|
---|
115 | <title>Command Explanations</title>
|
---|
116 |
|
---|
117 | <para><parameter>--enable-cxx</parameter>: This parameter
|
---|
118 | enables C++ support by building the
|
---|
119 | <filename class="libraryfile">libgmpxx</filename> libraries.</para>
|
---|
120 |
|
---|
121 | <para><parameter>--enable-mpbsd</parameter>: This parameter
|
---|
122 | enables building the Berkeley MP compatibility
|
---|
123 | (<filename class="libraryfile">libmp</filename>) libraries.</para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="content">
|
---|
128 | <title>Contents</title>
|
---|
129 |
|
---|
130 | <segmentedlist>
|
---|
131 | <segtitle>Installed Programs</segtitle>
|
---|
132 | <segtitle>Installed Libraries</segtitle>
|
---|
133 | <segtitle>Installed Directories</segtitle>
|
---|
134 |
|
---|
135 | <seglistitem>
|
---|
136 | <seg>None</seg>
|
---|
137 | <seg>libgmp.{so,a}, libgmpxx.{so,a} and libmp.{so,a}</seg>
|
---|
138 | <seg>None</seg>
|
---|
139 | </seglistitem>
|
---|
140 | </segmentedlist>
|
---|
141 |
|
---|
142 | <variablelist>
|
---|
143 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
144 | <?dbfo list-presentation="list"?>
|
---|
145 | <?dbhtml list-presentation="table"?>
|
---|
146 |
|
---|
147 | <varlistentry id="libgmp">
|
---|
148 | <term><filename class='libraryfile'>libgmp.{so,a}</filename></term>
|
---|
149 | <listitem>
|
---|
150 | <para>contains functions to operate on signed integers, rational
|
---|
151 | numbers, and floating point numbers.</para>
|
---|
152 | <indexterm zone="gmp libgmp">
|
---|
153 | <primary sortas="c-libgmp">libgmp.{so,a}</primary>
|
---|
154 | </indexterm>
|
---|
155 | </listitem>
|
---|
156 | </varlistentry>
|
---|
157 |
|
---|
158 | </variablelist>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | </sect1>
|
---|