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>Creating the ${CLFS}/tools Directory</title>
15 <title>${CLFS}/tools ディレクトリの生成</title>
19 <para>All programs compiled in <xref linkend="chapter-temp-system"/>
20 will be installed under <filename class="directory">${CLFS}/tools</filename>
21 to keep them separate from the programs compiled in <xref
22 linkend="chapter-building-system"/>. The programs compiled here are
23 temporary tools and will not be a part of the final CLFS system. By keeping
24 these programs in a separate directory, they can easily be discarded later
25 after their use. This also prevents these programs from ending up in the
26 host production directories (easy to do by accident in <xref
27 linkend="chapter-temp-system"/>).</para>
30 <xref linkend="chapter-temp-system"/> にてコンパイルするプログラムは、すべて <filename
31 class="directory">${CLFS}/tools</filename> ディレクトリ配下にインストールされ、<xref
32 linkend="chapter-building-system"/> にてコンパイルされるプログラムとは区別されます。
33 ここでコンパイルするプログラムは一時的ツールであって、最終的な CLFS システムを構成するものではありません。
34 このようにプログラムを分離したディレクトリに置いておけば、後に必要がなくなった時には簡単に削除できます。
35 またホストシステムの実行環境に入り混じってしまうことを避ける意味もあります。
36 (<xref linkend="chapter-temp-system"/> の作業でついうっかり、といった失敗がなくなります。)
41 <para>Create the required directory by running the following as
42 <systemitem class="username">root</systemitem>:</para>
45 必要なディレクトリを生成するために、<systemitem
46 class="username">root</systemitem> ユーザーになって以下を実行します。
51 <para>The next step is to create a <filename class="symlink">/tools</filename>
52 symlink on the host system. This will point to the newly-created directory
53 on the CLFS partition. Run this command as <systemitem
54 class="username">root</systemitem> as well:</para>
58 class="symlink">/tools</filename> のシンボリックリンクを生成します。
59 このリンクは CLFS パーティション上の新たなディレクトリを指し示すことになります。
60 先ほどと同じく <systemitem class="username">root</systemitem> ユーザーになって以下を実行します。
65 <para>The above command is correct. The <command>ln</command> command
66 has a few syntactic variations, so be sure to check <command>info
67 coreutils ln</command> and <filename>ln(1)</filename> before reporting
68 what you may think is an error.</para>
72 <command>ln</command> コマンドにはいくつか文法の異なるバージョンがあります。
73 間違いがあると思った場合には <command>info
74 coreutils ln</command> や <filename>ln(1)</filename> をよく確認してください。
79 <para>The created symlink enables the toolchain to be compiled so that
80 it always refers to <filename class="directory">/tools</filename>,
81 meaning that the compiler, assembler, and linker will work. This will
82 provide a common place for our temporary tools system.</para>
85 シンボリックリンクを作成することで、ツールチェーンをコンパイルする準備が整いました。
86 これにより常に <filename class="directory">/tools</filename> ディレクトリを参照したツールチェーンが生成でき、コンパイラー、アセンブラー、リンカーが動作するようになります。