2 % This is part of CLFSja package.
4 % This is a CTIE change file for the original XML source of the CLFSbook.
7 <?xml version="1.0" encoding="ISO-8859-1"?>
9 <?xml version="1.0" encoding="UTF-8"?>
13 <title>Installation of Glibc</title>
15 <title>&InstallationOf1;Glibc&InstallationOf2;</title>
19 <para os="l5">Tell Glibc to install its libraries into
20 <filename class="directory">/lib</filename>:</para>
23 Glibc においてライブラリのインストール先を <filename class="directory">/lib</filename> にします。
28 <title>The meaning of the new configure option:</title>
30 <title>&MeaningOfOption1;configure &MeaningOfOption2;</title>
33 @x --libexecdir=/usr/lib/glibc
34 <para>This changes the location of the <command>getconf</command>
35 utility from its default of <filename
36 class="directory">/usr/libexec</filename> to <filename
37 class="directory">/usr/lib/glibc</filename>.</para>
40 <command>getconf</command> ユーティリティーのインストールディレクトリを、デフォルトの <filename
41 class="directory">/usr/libexec</filename> でなく <filename
42 class="directory">/usr/lib/glibc</filename> に変更します。
47 <para>The install will finish by checking that everything is correctly installed.
48 Unfortunately, it will test for a multilib installation. On x86_64 Pure64 this means
49 it will try to test the non-existent 32-bit loader which has a different name
50 from the 64-bit loader (unlike on other 64-bit architectures). We fool it by
51 creating a symlink to the real loader.</para>
54 日本語訳註: matsuand, 2017/04/21
55 unlike のカッコ書き部分の訳はいかがなものか..
58 インストールの最後にはすべてが正しくインストールできたかのチェックが行われます。
59 ただそこで行われるテストはマルチライブラリ用のものです。
60 x86_64 Pure64 のインストールの場合、存在しない32ビットローダーのテストを実行することになってしまいます。
61 その32ビットローダーは64ビットローダーの名称とは異なります。
62 (64ビットアークテクチャーシステムの場合も異なります。)
63 シンボリックリンクを生成してローダーが存在しているように仕向けます。
68 <para>Now we can remove this symlink. We also need to correct the <command>
69 /usr/bin/ldd</command> script - if you look at this, you will see it references
70 not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker
71 is. The following <command>sed</command> will correct this:</para>
75 また <command>/usr/bin/ldd</command> スクリプトを修正する必要があります。
76 以下を見れば分かると思いますが、そのスクリプトは32ビットリンカーだけでなく /lib64 ディレクトリも参照しています。
77 <command>/usr/bin/ldd</command> は 64ビットリンカーが /lib64 にあるものとして動作する状況にあるわけです。
78 以下の <command>sed</command> によりこの状況を修正します。
83 <para>Check the script to make sure the sed worked correctly, then delete
87 <command>ldd</command> スクリプトに対して sed コマンドが正しく適用できたことを確認してください。
93 <title>Configuring The Dynamic Loader</title>
95 <title>&Configuring1;ダイナミックローダー&Configuring2;</title>
99 <para>By default, the dynamic loader (<filename
100 class="libraryfile">/lib/ld-linux-x86-64.so.2</filename>) searches through
101 <filename class="directory">/lib</filename> and <filename
102 class="directory">/usr/lib</filename> for dynamic libraries that are
103 needed by programs as they are run. However, if there are libraries in
104 directories other than <filename class="directory">/lib</filename> and
105 <filename class="directory">/usr/lib</filename>, these need to be
106 added to the <filename>/etc/ld.so.conf</filename> file in order
107 for the dynamic loader to find them. Two directories that are commonly
108 known to contain additional libraries are <filename
109 class="directory">/usr/local/lib</filename> and <filename
110 class="directory">/opt/lib</filename>, so add those directories to the
111 dynamic loader's search path.</para>
114 ダイナミックリンカー (<filename
115 class="libraryfile">/lib/ld-linux-x86-64.so.2</filename>) がダイナミックライブラリを検索するデフォルトのディレクトリが <filename
116 class="directory">/lib</filename> ディレクトリと <filename
117 class="directory">/usr/lib</filename> ディレクトリです。
118 各種プログラムが実行される際にはここから検索されたダイナミックライブラリがリンクされます。
119 もし <filename class="directory">/lib</filename> や <filename
120 class="directory">/usr/lib</filename> 以外のディレクトリにライブラリファイルがあるなら <filename>/etc/ld.so.conf</filename> ファイルに記述を追加して、ダイナミックローダーがそれらを探し出せるようにしておくことが必要です。
121 追加のライブラリが配置されるディレクトリとしては <filename
122 class="directory">/usr/local/lib</filename> ディレクトリと <filename
123 class="directory">/opt/lib</filename> ディレクトリという二つがよく利用されます。
124 ダイナミックローダーの検索パスとしてこのようなディレクトリを追加します。