OSDN Git Service

d1f39297c7a234e07082156f3a9717ef5706a2b9
[clfsja/cross-lfs-ja.git] / src / final-system / x86_64-64 / glibc.ch
1 %
2 % This is part of CLFSja package.
3 %
4 % This is a CTIE change file for the original XML source of the CLFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13     <title>Installation of Glibc</title>
14 @y
15     <title>&InstallationOf1;Glibc&InstallationOf2;</title>
16 @z
17
18 @x
19     <para os="l5">Tell Glibc to install its libraries into
20     <filename class="directory">/lib</filename>:</para>
21 @y
22     <para os="l5">
23     Glibc においてライブラリのインストール先を <filename class="directory">/lib</filename> にします。
24     </para>
25 @z
26
27 @x
28       <title>The meaning of the new configure option:</title>
29 @y
30       <title>&MeaningOfOption1;configure &MeaningOfOption2;</title>
31 @z
32
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>
38 @y
39           <para>
40           <command>getconf</command> ユーティリティーのインストールディレクトリを、デフォルトの <filename
41           class="directory">/usr/libexec</filename> でなく <filename
42           class="directory">/usr/lib/glibc</filename> に変更します。
43           </para>
44 @z
45
46 @x
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>
52 @y
53     <!--
54     日本語訳註: matsuand, 2017/04/21
55     unlike のカッコ書き部分の訳はいかがなものか..
56     -->
57     <para>
58     インストールの最後にはすべてが正しくインストールできたかのチェックが行われます。
59     ただそこで行われるテストはマルチライブラリ用のものです。
60     x86_64 Pure64 のインストールの場合、存在しない32ビットローダーのテストを実行することになってしまいます。
61     その32ビットローダーは64ビットローダーの名称とは異なります。
62     (64ビットアークテクチャーシステムの場合も異なります。)
63     シンボリックリンクを生成してローダーが存在しているように仕向けます。
64     </para>
65 @z
66
67 @x
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>
72 @y
73     <para>
74     上で作ったシンボリックリンクを削除します。
75     また <command>/usr/bin/ldd</command> スクリプトを修正する必要があります。
76     以下を見れば分かると思いますが、そのスクリプトは32ビットリンカーだけでなく /lib64 ディレクトリも参照しています。
77     <command>/usr/bin/ldd</command> は 64ビットリンカーが /lib64 にあるものとして動作する状況にあるわけです。
78     以下の <command>sed</command> によりこの状況を修正します。
79     </para>
80 @z
81
82 @x
83     <para>Check the script to make sure the sed worked correctly, then delete
84     the backup.</para>
85 @y
86     <para>
87     <command>ldd</command> スクリプトに対して sed コマンドが正しく適用できたことを確認してください。
88     そしてバックアップファイルは削除します。
89     </para>
90 @z
91
92 @x
93     <title>Configuring The Dynamic Loader</title>
94 @y
95     <title>&Configuring1;ダイナミックローダー&Configuring2;</title>
96 @z
97
98 @x
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>
112 @y
113     <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     ダイナミックローダーの検索パスとしてこのようなディレクトリを追加します。
125     </para>
126 @z