[d1ebcc8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d1ebcc8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[b330f4a] | 7 |
|
---|
[afcfd74] | 8 | <sect1 id="ch-partitioning-hostreqs" xreflabel="Host System Requirements">
|
---|
[b330f4a] | 9 | <?dbhtml filename="hostreqs.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Host System Requirements</title>
|
---|
| 12 |
|
---|
[7c92d6d] | 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 | Older systems that do not meet these requirements will still work,
|
---|
| 19 | but the time to build packages will be significantly longer
|
---|
| 20 | than documented.
|
---|
| 21 | </para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2>
|
---|
| 26 | <title>Software</title>
|
---|
| 27 |
|
---|
[fd8b059] | 28 | <para>Your host system should have the following software with the
|
---|
| 29 | minimum versions indicated. This should not be an issue for most
|
---|
| 30 | modern Linux distributions. Also note that many distributions will
|
---|
| 31 | place software headers into separate packages, often in the form of
|
---|
| 32 | <quote><package-name>-devel</quote> or
|
---|
| 33 | <quote><package-name>-dev</quote>. Be sure to install those if
|
---|
[5e858e7] | 34 | your distribution provides them.</para>
|
---|
[d12ae76] | 35 |
|
---|
[72fb9bf] | 36 | <para>Earlier versions of the listed software packages may work, but have
|
---|
| 37 | not been tested.</para>
|
---|
[7088c96] | 38 |
|
---|
[bf5724b] | 39 | <itemizedlist spacing="compact">
|
---|
[fd8b059] | 40 |
|
---|
[d12ae76] | 41 | <listitem>
|
---|
[7088c96] | 42 | <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
|
---|
[e4ab232] | 43 | should be a symbolic or hard link to bash)</para>
|
---|
[d12ae76] | 44 | </listitem>
|
---|
[fd8b059] | 45 |
|
---|
[d12ae76] | 46 | <listitem>
|
---|
[d6006ef] | 47 | <para><emphasis role="strong">Binutils-2.13.1</emphasis> (Versions
|
---|
[fd8b059] | 48 | greater than &binutils-version; are not recommended as they have
|
---|
| 49 | not been tested)</para>
|
---|
[d12ae76] | 50 | </listitem>
|
---|
[fd8b059] | 51 |
|
---|
[07dfccb] | 52 | <listitem>
|
---|
[b55310e] | 53 | <para><emphasis role="strong">Bison-2.7</emphasis> (/usr/bin/yacc
|
---|
[17a807a] | 54 | should be a link to bison or a small script that executes bison)</para>
|
---|
[07dfccb] | 55 | </listitem>
|
---|
| 56 |
|
---|
[d12ae76] | 57 | <listitem>
|
---|
[7088c96] | 58 | <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
|
---|
[d12ae76] | 59 | </listitem>
|
---|
[fd8b059] | 60 |
|
---|
[d12ae76] | 61 | <listitem>
|
---|
[7088c96] | 62 | <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
|
---|
[d12ae76] | 63 | </listitem>
|
---|
[fd8b059] | 64 |
|
---|
[d12ae76] | 65 | <listitem>
|
---|
[7088c96] | 66 | <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
|
---|
[d12ae76] | 67 | </listitem>
|
---|
[fd8b059] | 68 |
|
---|
[d12ae76] | 69 | <listitem>
|
---|
[3fbc395] | 70 | <para><emphasis role="strong">Gawk-4.0.1</emphasis> (/usr/bin/awk
|
---|
[e4ab232] | 71 | should be a link to gawk)</para>
|
---|
[d12ae76] | 72 | </listitem>
|
---|
[fd8b059] | 73 |
|
---|
[d12ae76] | 74 | <listitem>
|
---|
[0ba2ee5a] | 75 | <para><emphasis role="strong">GCC-5.1</emphasis> including the C++
|
---|
[142b29b] | 76 | compiler, <command>g++</command> (Versions greater than &gcc-version; are
|
---|
[d6006ef] | 77 | not recommended as they have not been tested). C and C++ standard
|
---|
| 78 | libraries (with headers) must also be present so the C++ compiler can
|
---|
| 79 | build hosted programs</para>
|
---|
[d12ae76] | 80 | </listitem>
|
---|
[fd8b059] | 81 |
|
---|
[d12ae76] | 82 | <listitem>
|
---|
[7088c96] | 83 | <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
|
---|
[d12ae76] | 84 | </listitem>
|
---|
[fd8b059] | 85 |
|
---|
[d12ae76] | 86 | <listitem>
|
---|
[7088c96] | 87 | <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
|
---|
[d12ae76] | 88 | </listitem>
|
---|
[fd8b059] | 89 |
|
---|
[d12ae76] | 90 | <listitem>
|
---|
[a93258d] | 91 | <para><emphasis role="strong">Linux Kernel-&min-kernel;</emphasis></para>
|
---|
[fd8b059] | 92 |
|
---|
[9ee226e] | 93 | <para>The reason for the kernel version requirement is that we specify
|
---|
[33ca65c] | 94 | that version when building <application>glibc</application> in
|
---|
| 95 | <xref linkend="chapter-cross-tools"/> and
|
---|
| 96 | <xref linkend="chapter-building-system"/>,
|
---|
[13e7d79] | 97 | at the recommendation of the developers. It is also required by
|
---|
| 98 | udev.</para>
|
---|
[7088c96] | 99 |
|
---|
[a93258d] | 100 | <para>If the host kernel is earlier than &min-kernel; you will need to replace
|
---|
[86f3868] | 101 | the kernel with a more up-to-date version. There are two ways
|
---|
[a93258d] | 102 | you can go about this. First, see if your Linux vendor provides a &min-kernel;
|
---|
[9ee226e] | 103 | or later kernel package. If so, you may wish to install it. If your
|
---|
| 104 | vendor doesn't offer an acceptable kernel package, or you would prefer not to
|
---|
| 105 | install it, you can compile a kernel yourself. Instructions for
|
---|
| 106 | compiling the kernel and configuring the boot loader (assuming the host
|
---|
| 107 | uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
|
---|
[56ca3a5f] | 108 |
|
---|
[d12ae76] | 109 | </listitem>
|
---|
[fd8b059] | 110 |
|
---|
[787fe0c] | 111 | <listitem>
|
---|
[7088c96] | 112 | <para><emphasis role="strong">M4-1.4.10</emphasis></para>
|
---|
[787fe0c] | 113 | </listitem>
|
---|
| 114 |
|
---|
[d12ae76] | 115 | <listitem>
|
---|
[76db8d6] | 116 | <para><emphasis role="strong">Make-4.0</emphasis></para>
|
---|
[d12ae76] | 117 | </listitem>
|
---|
[fd8b059] | 118 |
|
---|
[d12ae76] | 119 | <listitem>
|
---|
[fd8b059] | 120 | <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
|
---|
[d12ae76] | 121 | </listitem>
|
---|
[fd8b059] | 122 |
|
---|
[9692a57] | 123 | <listitem>
|
---|
[7088c96] | 124 | <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
|
---|
[9692a57] | 125 | </listitem>
|
---|
| 126 |
|
---|
[a271796] | 127 | <listitem>
|
---|
| 128 | <para><emphasis role="strong">Python-3.4</emphasis></para>
|
---|
| 129 | </listitem>
|
---|
| 130 |
|
---|
[d12ae76] | 131 | <listitem>
|
---|
[7088c96] | 132 | <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
|
---|
[d12ae76] | 133 | </listitem>
|
---|
[fd8b059] | 134 |
|
---|
[d12ae76] | 135 | <listitem>
|
---|
[7380c3aa] | 136 | <para><emphasis role="strong">Tar-1.22</emphasis></para>
|
---|
[d12ae76] | 137 | </listitem>
|
---|
| 138 |
|
---|
[4df39e5] | 139 | <listitem>
|
---|
| 140 | <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
|
---|
| 141 | </listitem>
|
---|
| 142 |
|
---|
[8e771c5] | 143 | <listitem>
|
---|
[44f6add] | 144 | <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
|
---|
[8e771c5] | 145 | </listitem>
|
---|
| 146 |
|
---|
[d12ae76] | 147 | </itemizedlist>
|
---|
| 148 |
|
---|
[72fb9bf] | 149 | <important>
|
---|
| 150 | <para>Note that the symlinks mentioned above are required to build an LFS
|
---|
| 151 | system using the instructions contained within this book. Symlinks that
|
---|
| 152 | point to other software (such as dash, mawk, etc.) may work, but are not
|
---|
| 153 | tested or supported by the LFS development team, and may require either
|
---|
| 154 | deviation from the instructions or additional patches to some
|
---|
| 155 | packages.</para>
|
---|
| 156 | </important>
|
---|
[e4ab232] | 157 |
|
---|
[d659bf4] | 158 | <!-- Use an empty sect2 element to prevent a pdf warning. -->
|
---|
[a04b192f] | 159 | <bridgehead renderas="sect2"
|
---|
| 160 | id="version-check"
|
---|
[72fb9bf] | 161 | xreflabel="Host System Requirements">
|
---|
| 162 | </bridgehead>
|
---|
| 163 | <!--<title> </title>-->
|
---|
[d659bf4] | 164 |
|
---|
| 165 | <para >To see whether your host system has all the appropriate versions, and
|
---|
[86f3868] | 166 | the ability to compile programs, run the following commands:</para>
|
---|
[5e858e7] | 167 |
|
---|
[b179883] | 168 | <screen role="nodump"><userinput>cat > version-check.sh << "EOF"
|
---|
[5e858e7] | 169 | <literal>#!/bin/bash
|
---|
[2914ab8c] | 170 | # Simple script to list version numbers of critical development tools
|
---|
[5dcff99] | 171 | export LC_ALL=C
|
---|
[5e858e7] | 172 | bash --version | head -n1 | cut -d" " -f2-4
|
---|
[7c4d11a] | 173 | MYSH=$(readlink -f /bin/sh)
|
---|
| 174 | echo "/bin/sh -> $MYSH"
|
---|
[5768244] | 175 | echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
|
---|
[7c4d11a] | 176 | unset MYSH
|
---|
| 177 |
|
---|
[727a610] | 178 | echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
|
---|
[172a92e] | 179 | bison --version | head -n1
|
---|
[a02b8ef] | 180 |
|
---|
| 181 | if [ -h /usr/bin/yacc ]; then
|
---|
| 182 | echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
|
---|
| 183 | elif [ -x /usr/bin/yacc ]; then
|
---|
| 184 | echo yacc is `/usr/bin/yacc --version | head -n1`
|
---|
| 185 | else
|
---|
[a04b192f] | 186 | echo "yacc not found"
|
---|
[a02b8ef] | 187 | fi
|
---|
[54d3ed5] | 188 |
|
---|
[baaa5c3] | 189 | echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
|
---|
[5e858e7] | 190 | diff --version | head -n1
|
---|
| 191 | find --version | head -n1
|
---|
| 192 | gawk --version | head -n1
|
---|
[a02b8ef] | 193 |
|
---|
| 194 | if [ -h /usr/bin/awk ]; then
|
---|
| 195 | echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
---|
| 196 | elif [ -x /usr/bin/awk ]; then
|
---|
[09c83f9] | 197 | echo awk is `/usr/bin/awk --version | head -n1`
|
---|
[a04b192f] | 198 | else
|
---|
| 199 | echo "awk not found"
|
---|
[a02b8ef] | 200 | fi
|
---|
[54d3ed5] | 201 |
|
---|
[2e8cbe0] | 202 | gcc --version | head -n1
|
---|
| 203 | g++ --version | head -n1
|
---|
| 204 | grep --version | head -n1
|
---|
| 205 | gzip --version | head -n1
|
---|
[a3b689f] | 206 | cat /proc/version
|
---|
[2e8cbe0] | 207 | m4 --version | head -n1
|
---|
| 208 | make --version | head -n1
|
---|
| 209 | patch --version | head -n1
|
---|
[3ccd4fe] | 210 | echo Perl `perl -V:version`
|
---|
[a271796] | 211 | python3 --version
|
---|
[2e8cbe0] | 212 | sed --version | head -n1
|
---|
| 213 | tar --version | head -n1
|
---|
[a271796] | 214 | makeinfo --version | head -n1 # texinfo version
|
---|
[2e8cbe0] | 215 | xz --version | head -n1
|
---|
[e4bdfc54] | 216 |
|
---|
[3d56263] | 217 | echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
|
---|
[2ca8941] | 218 | if [ -x dummy ]
|
---|
[4fedd8d] | 219 | then echo "g++ compilation OK";
|
---|
| 220 | else echo "g++ compilation failed"; fi
|
---|
[3d2cea9] | 221 | rm -f dummy.c dummy</literal>
|
---|
| 222 | EOF
|
---|
| 223 |
|
---|
| 224 | bash version-check.sh</userinput></screen>
|
---|
[d76a82b2] | 225 | <!--
|
---|
[3d2cea9] | 226 | <para>Also check for some library consistency:</para>
|
---|
[a09a914] | 227 |
|
---|
[3d2cea9] | 228 | <screen role="nodump"><userinput>cat > library-check.sh << "EOF"
|
---|
| 229 | <literal>#!/bin/bash
|
---|
[a09a914] | 230 | for lib in lib{gmp,mpfr,mpc}.la; do
|
---|
| 231 | echo $lib: $(if find /usr/lib* -name $lib|
|
---|
| 232 | grep -q $lib;then :;else echo not;fi) found
|
---|
| 233 | done
|
---|
| 234 | unset lib</literal>
|
---|
[5e858e7] | 235 | EOF
|
---|
| 236 |
|
---|
[3d2cea9] | 237 | bash library-check.sh</userinput></screen>
|
---|
| 238 |
|
---|
| 239 | <para>The files identified by this script should be all present
|
---|
| 240 | or all absent, but not only one or two present.</para>
|
---|
[d76a82b2] | 241 | -->
|
---|
[7c92d6d] | 242 | </sect2>
|
---|
[d1ebcc8] | 243 | </sect1>
|
---|