source: chapter02/hostreqs.xml@ 5c3ffcb9

xry111/clfs-ng
Last change on this file since 5c3ffcb9 was 5c3ffcb9, checked in by Xi Ruoyao <xry111@…>, 16 months ago

cross-ng: Both host and target systems are recommended to have 4core/8GB

  • Property mode set to 100644
File size: 6.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-partitioning-hostreqs" xreflabel="Host System Requirements">
9 <?dbhtml filename="hostreqs.html"?>
10
11 <title>Host System Requirements</title>
12
13 <sect2>
14 <title>Hardware</title>
15
16 <para>The LFS editors recommend that the system CPU have at least
17 four cores and that the system have at least 8 GB of memory.
18
19 For the Cross Edition, it's recommended that both the system running
20 the host distribution and the target system should meet the
21 requirements.
22
23 Older systems that do not meet these requirements will still work,
24 but the time to build packages will be significantly longer
25 than documented.
26 </para>
27
28 </sect2>
29
30 <sect2>
31 <title>Software</title>
32
33 <para>Your host system should have the following software with the
34 minimum versions indicated. This should not be an issue for most
35 modern Linux distributions. Also note that many distributions will
36 place software headers into separate packages, often in the form of
37 <quote>&lt;package-name&gt;-devel</quote> or
38 <quote>&lt;package-name&gt;-dev</quote>. Be sure to install those if
39 your distribution provides them.</para>
40
41 <para>Earlier versions of the listed software packages may work, but have
42 not been tested.</para>
43
44 <itemizedlist spacing="compact">
45
46 <listitem>
47 <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
48 should be a symbolic or hard link to bash)</para>
49 </listitem>
50
51 <listitem>
52 <para><emphasis role="strong">Binutils-2.13.1</emphasis> (Versions
53 greater than &binutils-version; are not recommended as they have
54 not been tested)</para>
55 </listitem>
56
57 <listitem>
58 <!-- needed to cross build the kernel in chapter 6 -->
59 <para><emphasis role="strong">Bc-1.07.0</emphasis></para>
60 </listitem>
61
62 <listitem>
63 <para><emphasis role="strong">Bison-2.7</emphasis> (/usr/bin/yacc
64 should be a link to bison or a small script that executes bison)</para>
65 </listitem>
66
67 <listitem>
68 <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
69 </listitem>
70
71 <listitem>
72 <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
73 </listitem>
74
75 <listitem>
76 <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
77 </listitem>
78
79 <listitem>
80 <para><emphasis role="strong">Gawk-4.0.1</emphasis> (/usr/bin/awk
81 should be a link to gawk)</para>
82 </listitem>
83
84 <listitem>
85 <para><emphasis role="strong">GCC-5.1</emphasis> including the C++
86 compiler, <command>g++</command> (Versions greater than &gcc-version; are
87 not recommended as they have not been tested). C and C++ standard
88 libraries (with headers) must also be present so the C++ compiler can
89 build hosted programs</para>
90 </listitem>
91
92 <listitem>
93 <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
94 </listitem>
95
96 <listitem>
97 <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
98 </listitem>
99
100 <listitem>
101 <para><emphasis role="strong">M4-1.4.10</emphasis></para>
102 </listitem>
103
104 <listitem>
105 <para><emphasis role="strong">Make-4.0</emphasis></para>
106 </listitem>
107
108 <listitem>
109 <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
110 </listitem>
111
112 <listitem>
113 <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
114 </listitem>
115
116 <listitem>
117 <para><emphasis role="strong">Python-3.4</emphasis></para>
118 </listitem>
119
120 <listitem>
121 <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
122 </listitem>
123
124 <listitem>
125 <para><emphasis role="strong">Tar-1.22</emphasis></para>
126 </listitem>
127
128 <listitem>
129 <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
130 </listitem>
131
132 <listitem>
133 <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
134 </listitem>
135
136 </itemizedlist>
137
138 <important>
139 <para>Note that the symlinks mentioned above are required to build an LFS
140 system using the instructions contained within this book. Symlinks that
141 point to other software (such as dash, mawk, etc.) may work, but are not
142 tested or supported by the LFS development team, and may require either
143 deviation from the instructions or additional patches to some
144 packages.</para>
145 </important>
146
147 <!-- Use an empty sect2 element to prevent a pdf warning. -->
148 <bridgehead renderas="sect2"
149 id="version-check"
150 xreflabel="Host System Requirements">
151 </bridgehead>
152 <!--<title> </title>-->
153
154 <para >To see whether your host system has all the appropriate versions, and
155 the ability to compile programs, run the following commands:</para>
156
157<screen role="nodump"><userinput>cat &gt; version-check.sh &lt;&lt; "EOF"
158<literal>#!/bin/bash
159# Simple script to list version numbers of critical development tools
160export LC_ALL=C
161bash --version | head -n1 | cut -d" " -f2-4
162MYSH=$(readlink -f /bin/sh)
163echo "/bin/sh -&gt; $MYSH"
164echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
165unset MYSH
166
167bc --version | head -n1
168echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
169bison --version | head -n1
170
171if [ -h /usr/bin/yacc ]; then
172 echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
173elif [ -x /usr/bin/yacc ]; then
174 echo yacc is `/usr/bin/yacc --version | head -n1`
175else
176 echo "yacc not found"
177fi
178
179echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
180diff --version | head -n1
181find --version | head -n1
182gawk --version | head -n1
183
184if [ -h /usr/bin/awk ]; then
185 echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`";
186elif [ -x /usr/bin/awk ]; then
187 echo awk is `/usr/bin/awk --version | head -n1`
188else
189 echo "awk not found"
190fi
191
192gcc --version | head -n1
193g++ --version | head -n1
194grep --version | head -n1
195gzip --version | head -n1
196cat /proc/version
197m4 --version | head -n1
198make --version | head -n1
199patch --version | head -n1
200echo Perl `perl -V:version`
201python3 --version
202sed --version | head -n1
203tar --version | head -n1
204makeinfo --version | head -n1 # texinfo version
205xz --version | head -n1
206
207echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c
208if [ -x dummy ]
209 then echo "g++ compilation OK";
210 else echo "g++ compilation failed"; fi
211rm -f dummy.c dummy</literal>
212EOF
213
214bash version-check.sh</userinput></screen>
215<!--
216 <para>Also check for some library consistency:</para>
217
218<screen role="nodump"><userinput>cat &gt; library-check.sh &lt;&lt; "EOF"
219<literal>#!/bin/bash
220for lib in lib{gmp,mpfr,mpc}.la; do
221 echo $lib: $(if find /usr/lib* -name $lib|
222 grep -q $lib;then :;else echo not;fi) found
223done
224unset lib</literal>
225EOF
226
227bash library-check.sh</userinput></screen>
228
229<para>The files identified by this script should be all present
230or all absent, but not only one or two present.</para>
231-->
232 </sect2>
233</sect1>
Note: See TracBrowser for help on using the repository browser.