[6a043e2] | 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 |
|
---|
| 8 | <sect1 id="ch-system-gmp" role="wrap">
|
---|
| 9 | <?dbhtml filename="gmp.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>GMP-&gmp-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-gmp">
|
---|
| 14 | <primary sortas="a-GMP">GMP</primary>
|
---|
| 15 | <secondary>temporary system</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <sect2 role="package">
|
---|
| 19 | <title/>
|
---|
| 20 |
|
---|
| 21 | <para>GMP is a library for arithmetic on arbitrary precision integers,
|
---|
| 22 | rational numbers, and floating-point numbers.</para>
|
---|
| 23 |
|
---|
| 24 | </sect2>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="installation">
|
---|
| 27 | <title>Installation of GMP</title>
|
---|
| 28 |
|
---|
| 29 | <para os="a">Prepare GMP for compilation:</para>
|
---|
| 30 |
|
---|
[6b11f9b0] | 31 | <screen os="b"><userinput>CC="gcc -Wl,-rpath-link,/lib -isystem /usr/include" \
|
---|
| 32 | CXX="g++ -Wl,-rpath-link,/lib -isystem /usr/include" ./configure --prefix=/usr \
|
---|
[6a043e2] | 33 | --enable-cxx --enable-mpbsd</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para os="c">Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
| 39 | <important os="e">
|
---|
| 40 | <para>The test suite for GMP is considered
|
---|
| 41 | critical. Do not skip it under any circumstance.</para>
|
---|
| 42 | </important>
|
---|
| 43 |
|
---|
| 44 | <para os="f">Test the results:</para>
|
---|
| 45 |
|
---|
| 46 | <screen os="g"><userinput>make check</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para os="h">Install the package:</para>
|
---|
| 49 |
|
---|
| 50 | <screen os="i"><userinput>make install</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2 id="contents-gmp" role="content">
|
---|
| 55 | <title>Contents of GMP</title>
|
---|
| 56 |
|
---|
| 57 | <segmentedlist>
|
---|
| 58 | <segtitle>Installed Libraries</segtitle>
|
---|
| 59 |
|
---|
| 60 | <seglistitem>
|
---|
| 61 | <seg>libgmp.[a,so], libgmpxx[a,so]</seg>
|
---|
| 62 | </seglistitem>
|
---|
| 63 | </segmentedlist>
|
---|
| 64 |
|
---|
| 65 | <variablelist>
|
---|
| 66 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 67 | <?dbfo list-presentation="list"?>
|
---|
| 68 | <?dbhtml list-presentation="table"?>
|
---|
| 69 |
|
---|
| 70 | <varlistentry id="libgmp">
|
---|
| 71 | <term><filename class="libraryfile">libgmp</filename></term>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Contains the definitions for GNU multiple precision functions.</para>
|
---|
| 74 | <indexterm zone="ch-system-gmp libgmp">
|
---|
| 75 | <primary sortas="b-libgmp">libgmp</primary>
|
---|
| 76 | </indexterm>
|
---|
| 77 | </listitem>
|
---|
| 78 | </varlistentry>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="libgmpxx">
|
---|
| 81 | <term><filename class="libraryfile">libgmpxx</filename></term>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>Contains a C++ class wrapper for GMP types.</para>
|
---|
| 84 | <indexterm zone="ch-system-gmp libgmpxx">
|
---|
| 85 | <primary sortas="b-libgmpxx">libgmpxx</primary>
|
---|
| 86 | </indexterm>
|
---|
| 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
| 89 |
|
---|
| 90 | </variablelist>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | </sect1>
|
---|