1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
9 <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
10 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
11 <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
12 "text/css" media="print" />
14 <body class="lfs" id="lfs-6.8">
15 <div class="navheader">
17 Linux From Scratch - Version 6.8
24 <a accesskey="p" href="binutils.html" title=
25 "Binutils-2.21">前のページ</a>
31 <a accesskey="n" href="mpfr.html" title="MPFR-3.0.0">次のページ</a>
37 <a accesskey="u" href="chapter06.html" title=
38 "第6章 基本的なソフトウェアのインストール">上に戻る</a>
41 <a accesskey="h" href="../index.html" title=
42 "Linux From Scratch - Version 6.8">ホーム</a>
46 <div class="wrap" lang="ja" xml:lang="ja">
48 <a id="ch-system-gmp" name="ch-system-gmp"></a>6.13. GMP-5.0.1
50 <div class="package" lang="ja" xml:lang="ja">
52 GMP パッケージは数値演算ライブラリを提供します。 このライブラリには任意精度演算 (arbitrary precision
53 arithmetic) を行う有用な関数が含まれます。
55 <div class="segmentedlist">
56 <div class="seglistitem">
58 <strong class="segtitle">概算ビルド時間:</strong> <span class=
59 "segbody">1.7 SBU</span>
62 <strong class="segtitle">必要ディスク容量:</strong> <span class=
63 "segbody">39 MB</span>
68 <div class="installation" lang="ja" xml:lang="ja">
72 <div class="admon note">
73 <img alt="[注記]" src="../images/note.png" />
78 32 ビット x86 CPU にて環境構築する際に、 64 ビットコードを扱う CPU 環境であって <span class=
79 "emphasis"><em>かつ</em></span> <code class="envar">CFLAGS</code>
80 を指定していると、 本パッケージの configure スクリプトは 64 ビット用の処理を行い失敗します。
81 これを回避するには、以下のように処理してください。
83 <pre class="userinput">
84 <kbd class="command"><em class=
85 "parameter"><code>ABI=32</code></em> ./configure ...</kbd>
89 GMP をコンパイルするための準備をします。
91 <pre class="userinput">
93 "command">./configure --prefix=/usr --enable-cxx --enable-mpbsd</kbd>
95 <div class="variablelist">
97 <b>configure オプションの意味:</b>
101 <span class="term"><em class=
102 "parameter"><code>--enable-cxx</code></em></span>
110 <span class="term"><em class=
111 "parameter"><code>--enable-mpbsd</code></em></span>
115 Berkeley MP に対する互換ライブラリをビルドします。
123 <pre class="userinput">
124 <kbd class="command">make</kbd>
126 <div class="admon important">
127 <img alt="[重要項目]" src="../images/important.png" />
132 本節における GMP のテストスイートは極めて重要なものです。 したがってどのような場合であっても必ず実行してください。
138 <pre class="userinput">
139 <kbd class="command">make check 2>&1 | tee gmp-check-log</kbd>
142 162個のテストが完了することを確認してください。 テスト結果は以下のコマンドにより確認することができます。
144 <pre class="userinput">
146 "command">awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log</kbd>
151 <pre class="userinput">
152 <kbd class="command">make install</kbd>
155 必要ならドキュメントをインストールします。
157 <pre class="userinput">
158 <kbd class="command">mkdir -v /usr/share/doc/gmp-5.0.1
159 cp -v doc/{isa_abi_headache,configuration} doc/*.html \
160 /usr/share/doc/gmp-5.0.1</kbd>
163 <div class="content" lang="ja" xml:lang="ja">
165 <a id="contents-gmp" name="contents-gmp"></a>6.13.2. GMP の構成
167 <div class="segmentedlist">
168 <div class="seglistitem">
170 <strong class="segtitle">インストールライブラリ:</strong> <span class=
171 "segbody">libgmp.{a,so}, libgmpxx.{a,so}, libmp.{a,so}</span>
174 <strong class="segtitle">インストールディレクトリ:</strong> <span class=
175 "segbody">/usr/share/doc/gmp-5.0.1</span>
179 <div class="variablelist">
184 <col align="left" valign="top" />
189 <a id="libgmp" name="libgmp"></a><span class=
190 "term"><code class="filename">libgmp</code></span>
195 精度演算関数 (precision math functions) を提供します。
202 <a id="libgmpxx" name="libgmpxx"></a><span class=
203 "term"><code class="filename">libgmpxx</code></span>
215 <a id="libmp" name="libmp"></a><span class=
216 "term"><code class="filename">libmp</code></span>
221 Berkley MP 演算関数を提供します。
230 <div class="navfooter">
233 <a accesskey="p" href="binutils.html" title=
234 "Binutils-2.21">前のページ</a>
240 <a accesskey="n" href="mpfr.html" title="MPFR-3.0.0">次のページ</a>
246 <a accesskey="u" href="chapter06.html" title=
247 "第6章 基本的なソフトウェアのインストール">上に戻る</a>
250 <a accesskey="h" href="../index.html" title=
251 "Linux From Scratch - Version 6.8">ホーム</a>