source: general/genlib/gmp.xml@ 041b4249

10.0 10.1 11.0 11.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 041b4249 was 041b4249, checked in by Robert Daniels <rdaniels@…>, 14 years ago

Updated to GMP-4.2.2.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7264 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.4 KB
Line 
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 &amp;&amp;
70make</userinput></screen>
71
72 <para>If you have <xref linkend="tetex"/> installed and you wish to create
73 alternate formats of the documentation, issue any or all of the following
74 commands:</para>
75
76<screen><userinput>make -C doc pdf &amp;&amp;
77make -C doc ps &amp;&amp;
78make -C doc html &amp;&amp;
79texi2html -o doc/gmp_nochunks.html doc/gmp.texi &amp;&amp;
80makeinfo --plaintext -o doc/gmp.txt doc/gmp.texi</userinput></screen>
81
82 <para>To test the results, issue: <command>make check</command>.
83 Owing to various reports of mis-compilations, the maintainer strongly
84 recommends running the test-suite and reporting any failures. The libraries
85 should not be used in a production environment if there are problems
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 &gt;check.log 2&gt;&amp;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>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install</userinput></screen>
98
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 &amp;&amp;
104install -v -m644 doc/gmp.html/* /usr/share/doc/gmp-&gmp-version;/html &amp;&amp;
105install -v -m644 doc/{isa_abi_headache,configuration} \
106 doc/*.{pdf,dvi,ps,html,txt} \
107 /usr/share/doc/gmp-&gmp-version;</userinput></screen>
108 </sect2>
109
110 <sect2 role="commands">
111 <title>Command Explanations</title>
112
113 <para><parameter>--enable-cxx</parameter>: This parameter
114 enables C++ support by building the
115 <filename class="libraryfile">libgmpxx</filename> libraries.</para>
116
117 <para><parameter>--enable-mpbsd</parameter>: This parameter
118 enables building the Berkeley MP compatibility
119 (<filename class="libraryfile">libmp</filename>) libraries.</para>
120
121 </sect2>
122
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>
130
131 <seglistitem>
132 <seg>None</seg>
133 <seg>libgmp.{so,a}, libgmpxx.{so,a} and libmp.{so,a}</seg>
134 <seg>None</seg>
135 </seglistitem>
136 </segmentedlist>
137
138 <variablelist>
139 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
140 <?dbfo list-presentation="list"?>
141 <?dbhtml list-presentation="table"?>
142
143 <varlistentry id="libgmp">
144 <term><filename class='libraryfile'>libgmp.{so,a}</filename></term>
145 <listitem>
146 <para>contains functions to operate on signed integers, rational
147 numbers, and floating point numbers.</para>
148 <indexterm zone="gmp libgmp">
149 <primary sortas="c-libgmp">libgmp.{so,a}</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 </variablelist>
155
156 </sect2>
157
158</sect1>
Note: See TracBrowser for help on using the repository browser.