Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/lfsbook/src/chapter01/how.ch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (hide annotations) (download)
Sat Sep 24 08:07:00 2011 UTC (12 years, 6 months ago) by matsuand
File size: 11597 byte(s)
[LFS-SVN] 随所にて用語修正。
1 matsuand 340 %
2     % This is part of LFSbookja package.
3     %
4     % This is a CTIE change file for the original XML source of the LFSbook.
5     %
6     % $Author$
7     % $Rev$
8     % $Date$
9     %
10 matsuand 9 @x
11     <?xml version="1.0" encoding="ISO-8859-1"?>
12     @y
13     <?xml version="1.0" encoding="UTF-8"?>
14     @z
15    
16     @x
17     <title>How to Build an LFS System</title>
18     @y
19     <title>LFS をどうやって作るか</title>
20     @z
21    
22     @x
23     <para>The LFS system will be built by using an already installed
24     Linux distribution (such as Debian, Mandriva, Red Hat, or SUSE). This
25     existing Linux system (the host) will be used as a starting point to
26     provide necessary programs, including a compiler, linker, and shell,
27     to build the new system. Select the <quote>development</quote> option
28     during the distribution installation to be able to access these
29     tools.</para>
30     @y
31     <para>
32 matsuand 340 LFS システムは、既にインストールされている Linux ディストリビューション (DebianMandrivaRed HatSUSE など) を利用して構築していきます。
33 matsuand 9 この既存の Linux システム(ホスト)は、LFS 構築のために様々なプログラム類を利用する基盤となります。
34 matsuand 340 プログラム類とはコンパイラー、リンカー、シェルなどです。
35     したがってそのディストリビューションのインストール時には<quote>開発 (development)</quote>オプションを選択し、それらのプログラム類が利用できるようにしておく必要があります。
36 matsuand 9 </para>
37     @z
38    
39     @x
40     <para>As an alternative to installing a separate distribution onto your
41     machine, you may wish to use the Linux From Scratch LiveCD or a LiveCD from a
42     commercial distribution. The LFS LiveCD works well as a host system,
43     providing all the tools you need to successfully follow the instructions in
44 matsuand 148 this book. The LiveCD version is behind the current book, but is still useful
45     as a host for building the current book. The <quote>-nosrc</quote> or
46     <quote>-min</quote> editions of the LiveCD are the most appropriate for
47     building a current LFS system. For more information about the LFS LiveCD or
48     to download a copy, visit <ulink url="&livecd-root;"/>.</para>
49 matsuand 9 @y
50     <para>
51 matsuand 345 コンピューター内にインストールされているディストリビューションを利用するのではなく、Linux From Scratch LiveCD、あるいは他に提供されている LiveCD を利用することもできます。
52 matsuand 148 LFS LiveCD はホストシステムとして利用することができ、本書の手順を実施するための必要なツール類がすべて含まれます。
53     LiveCD の開発は思うように進んでいませんが、ホストシステムとして利用することが可能です。
54 matsuand 340 現時点にて本書によるビルド作業を進めるなら<quote>-nosrc</quote><quote>-min</quote>という名称が含まれている版を用いてください。
55     LFS LiveCD の詳細や LiveCD ダウンロード方法については <ulink url="&livecd-root;"/> を参照してください。
56 matsuand 9 </para>
57     @z
58    
59     @x
60     <para>The LFS LiveCD might not work on newer hardware configurations,
61     failing to boot or failing to detect some devices such as some SATA hard
62     drives.</para>
63     @y
64     <para>
65     LFS LiveCD は最近のハードウェア環境において、うまく動作しないかもしれません。
66     ブートに失敗したり SATA ハードドライブのようなデバイス検出に失敗したりすることがあります。
67     </para>
68     @z
69    
70     @x
71     <para><xref linkend="chapter-partitioning"/> of this book describes how
72     to create a new Linux native partition and file system. This is the place
73     where the new LFS system will be compiled and installed. <xref
74     linkend="chapter-getting-materials"/> explains which packages and
75     patches need to be downloaded to build an LFS system and how to store
76     them on the new file system. <xref linkend="chapter-final-preps"/>
77     discusses the setup of an appropriate working environment. Please read
78     <xref linkend="chapter-final-preps"/> carefully as it explains several
79     important issues you need be aware of before beginning to
80     work your way through <xref linkend="chapter-temporary-tools"/> and beyond.</para>
81     @y
82     <para>
83 matsuand 340 <xref linkend="chapter-partitioning"/> では、新しく構築する Linux のためのパーティションとファイルシステムの生成方法について説明します。
84 matsuand 9 そのパーティション上にて LFS システムをコンパイルしインストールします。
85 matsuand 340 <xref linkend="chapter-getting-materials"/> では LFS 構築に必要となるパッケージとパッチについて説明します。
86 matsuand 9 これらをダウンロードして新たなファイルシステム内に保存します。
87 matsuand 340 <xref linkend="chapter-final-preps"/> では作業環境の準備について述べています。
88     この章では重要な説明を行っていますので <xref linkend="chapter-temporary-tools"/> 以降に進む前に是非注意して読んでください。
89 matsuand 9 </para>
90     @z
91    
92     @x
93     <para><xref linkend="chapter-temporary-tools"/> explains the
94     installation of a number of packages that will form the basic
95     development suite (or toolchain) which is used to build the actual
96     system in <xref linkend="chapter-building-system"/>. Some of these
97     packages are needed to resolve circular dependencies&mdash;for example,
98     to compile a compiler, you need a compiler.</para>
99     @y
100     <para>
101 matsuand 340 <xref linkend="chapter-temporary-tools"/> では数多くのパッケージをインストールします。
102     これらは基本的な開発ツール (ツールチェーン) を構成するものであり <xref
103     linkend="chapter-building-system"/> において最終的なシステムを構築するために利用します。
104 matsuand 9 パッケージの中には自分自身を循環的に必要とするような依存関係を持つものがあります。
105 matsuand 340 例えばコンパイラーをコンパイルするためにはコンパイラーが必要となります。
106 matsuand 9 </para>
107     @z
108    
109     @x
110     <para><xref linkend="chapter-temporary-tools"/> also shows you how to
111     build a first pass of the toolchain, including Binutils and GCC (first pass
112     basically means these two core packages will be reinstalled).
113     The next step is to build Glibc, the C library. Glibc will be compiled by
114     the toolchain programs built in the first pass. Then, a second pass of the
115     toolchain will be built. This time, the toolchain will be dynamically linked
116     against the newly built Glibc. The remaining <xref
117     linkend="chapter-temporary-tools"/> packages are built using this second
118     pass toolchain. When this is done, the LFS installation process will no
119     longer depend on the host distribution, with the exception of the running
120     kernel. </para>
121     @y
122     <para>
123 matsuand 340 <xref linkend="chapter-temporary-tools"/> ではツールチェーンの第1回めの構築方法を示します。
124 matsuand 9 そこではまず BinutilsGCC を構築します。
125     (1回めと表現しているということは、つまりこれら2つのパッケージは後に再構築します。)
126     次に C ライブラリである Glibc を構築します。
127     Glibc は第1回めのツールチェーンを用いてコンパイルされます。
128     そして第2回めのツールチェーン構築を行います。
129     この時のツールチェーンは新たに構築した Glibc をリンクします。
130 matsuand 340 それ以降の <xref linkend="chapter-temporary-tools"/> に示すパッケージは第2回めのツールチェーンプログラムを用いて構築します。
131 matsuand 9 上の作業をすべて終えたら LFS のインストール作業はもはやホストディストリビューションに依存しません。
132     ただし作動させるカーネルだけは使い続けます。
133     </para>
134     @z
135    
136     @x
137     <para>This effort to isolate the new system from the host distribution may
138     seem excessive. A full technical explanation as to why this is done is provided in
139     <xref linkend="ch-tools-toolchaintechnotes"/>.</para>
140     @y
141     <para>
142     ホストシステムのツール類から新しいシステムを切り離していくこの手順は、やり過ぎのように見えるかもしれません。
143 matsuand 340 <xref linkend="ch-tools-toolchaintechnotes"/> にて詳細に説明しているので参照してください。
144 matsuand 9 </para>
145     @z
146    
147     @x
148     <para>In <xref linkend="chapter-building-system"/>, the full LFS system is
149     built. The <command>chroot</command> (change root) program is used to enter
150     a virtual environment and start a new shell whose root directory will be
151     set to the LFS partition. This is very similar to rebooting and instructing
152     the kernel to mount the LFS partition as the root partition. The system
153     does not actually reboot, but instead <command>chroot</command>'s because
154     creating a bootable system requires additional work which is not necessary
155     just yet. The major advantage is that <quote>chrooting</quote> allows you
156     to continue using the host system while LFS is being built. While waiting
157     for package compilations to complete, you can continue using your computer as
158     normal.</para>
159     @y
160     <para>
161 matsuand 340 <xref linkend="chapter-building-system"/> にて LFS システムが出来上がります。
162     <command>chroot</command> (ルートをチェンジする) プログラムを使って仮想的な環境に入り LFS パーティション内のディレクトリをルートディレクトリとしてシェルを起動します。
163 matsuand 9 これは LFS パーティションをルートパーティションとするシステム再起動と同じことです。
164     ただ実際にはシステムを再起動はしません。
165 matsuand 340 再起動できるシステムとするためにはもう少し作業を必要としますし、この時点ではまだそれが必要ではないので <command>chroot</command> を行う方法を取ります。
166 matsuand 9 <command>chroot</command> を使うメリットは、LFS 構築作業にあたって引き続きホストシステムを利用できることです。
167     パッケージをコンパイルしている最中には、通常どおり別の作業を行うことができます。
168     </para>
169     @z
170    
171     @x
172     <para>To finish the installation, the LFS-Bootscripts are set up in
173     <xref linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
174     up in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
175     contains information on continuing the LFS experience beyond this book.
176     After the steps in this book have been implemented, the computer will be
177     ready to reboot into the new LFS system.</para>
178     @y
179     <para>
180 matsuand 340 インストールの仕上げとして <xref linkend="chapter-bootscripts"/> にて LFS ブートスクリプトを設定し、<xref linkend="chapter-bootable"/> にてカーネルとブートローダーを設定します。
181     <xref linkend="chapter-finalizing"/> では LFS システム構築経験を踏まえて、その先に進むための情報を示します。
182 matsuand 9 本書に示す作業をすべて実施すれば、新たな LFS システムを起動することが出来ます。
183     </para>
184     @z
185    
186     @x
187     <para>This is the process in a nutshell. Detailed information on each
188     step is discussed in the following chapters and package descriptions.
189     Items that may seem complicated will be clarified, and everything will
190     fall into place as you embark on the LFS adventure.</para>
191     @y
192     <para>
193     上はごく簡単な説明にすぎません。
194     各作業の詳細はこれ以降の章やパッケージの説明を参照してください。
195     内容が難しいと思っていても、それは徐々に理解していけるはずです。
196     読者の皆さんには、是非 LFS アドベンチャーに挑んで頂きたいと思います。
197     </para>
198     @z

Properties

Name Value
svn:keywords Author Date Rev

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26