[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.
|
---|
[5c3ffcb9] | 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 |
|
---|
[7c92d6d] | 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 |
|
---|
[fd8b059] | 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><package-name>-devel</quote> or
|
---|
| 38 | <quote><package-name>-dev</quote>. Be sure to install those if
|
---|
[5e858e7] | 39 | your distribution provides them.</para>
|
---|
[d12ae76] | 40 |
|
---|
[72fb9bf] | 41 | <para>Earlier versions of the listed software packages may work, but have
|
---|
| 42 | not been tested.</para>
|
---|
[7088c96] | 43 |
|
---|
[bf5724b] | 44 | <itemizedlist spacing="compact">
|
---|
[fd8b059] | 45 |
|
---|
[d12ae76] | 46 | <listitem>
|
---|
[7088c96] | 47 | <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
|
---|
[e4ab232] | 48 | should be a symbolic or hard link to bash)</para>
|
---|
[d12ae76] | 49 | </listitem>
|
---|
[fd8b059] | 50 |
|
---|
[d12ae76] | 51 | <listitem>
|
---|
[d6006ef] | 52 | <para><emphasis role="strong">Binutils-2.13.1</emphasis> (Versions
|
---|
[fd8b059] | 53 | greater than &binutils-version; are not recommended as they have
|
---|
| 54 | not been tested)</para>
|
---|
[d12ae76] | 55 | </listitem>
|
---|
[fd8b059] | 56 |
|
---|
[8b37712] | 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 |
|
---|
[07dfccb] | 62 | <listitem>
|
---|
[b55310e] | 63 | <para><emphasis role="strong">Bison-2.7</emphasis> (/usr/bin/yacc
|
---|
[17a807a] | 64 | should be a link to bison or a small script that executes bison)</para>
|
---|
[07dfccb] | 65 | </listitem>
|
---|
| 66 |
|
---|
[d12ae76] | 67 | <listitem>
|
---|
[7088c96] | 68 | <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
|
---|
[d12ae76] | 69 | </listitem>
|
---|
[fd8b059] | 70 |
|
---|
[d12ae76] | 71 | <listitem>
|
---|
[7088c96] | 72 | <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
|
---|
[d12ae76] | 73 | </listitem>
|
---|
[fd8b059] | 74 |
|
---|
[d12ae76] | 75 | <listitem>
|
---|
[7088c96] | 76 | <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
|
---|
[d12ae76] | 77 | </listitem>
|
---|
[fd8b059] | 78 |
|
---|
[d12ae76] | 79 | <listitem>
|
---|
[3fbc395] | 80 | <para><emphasis role="strong">Gawk-4.0.1</emphasis> (/usr/bin/awk
|
---|
[e4ab232] | 81 | should be a link to gawk)</para>
|
---|
[d12ae76] | 82 | </listitem>
|
---|
[fd8b059] | 83 |
|
---|
[d12ae76] | 84 | <listitem>
|
---|
[0ba2ee5a] | 85 | <para><emphasis role="strong">GCC-5.1</emphasis> including the C++
|
---|
[142b29b] | 86 | compiler, <command>g++</command> (Versions greater than &gcc-version; are
|
---|
[d6006ef] | 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>
|
---|
[d12ae76] | 90 | </listitem>
|
---|
[fd8b059] | 91 |
|
---|
[d12ae76] | 92 | <listitem>
|
---|
[7088c96] | 93 | <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
|
---|
[d12ae76] | 94 | </listitem>
|
---|
[fd8b059] | 95 |
|
---|
[d12ae76] | 96 | <listitem>
|
---|
[7088c96] | 97 | <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
|
---|
[d12ae76] | 98 | </listitem>
|
---|
[fd8b059] | 99 |
|
---|
[787fe0c] | 100 | <listitem>
|
---|
[7088c96] | 101 | <para><emphasis role="strong">M4-1.4.10</emphasis></para>
|
---|
[787fe0c] | 102 | </listitem>
|
---|
| 103 |
|
---|
[d12ae76] | 104 | <listitem>
|
---|
[76db8d6] | 105 | <para><emphasis role="strong">Make-4.0</emphasis></para>
|
---|
[d12ae76] | 106 | </listitem>
|
---|
[fd8b059] | 107 |
|
---|
[d12ae76] | 108 | <listitem>
|
---|
[fd8b059] | 109 | <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
|
---|
[d12ae76] | 110 | </listitem>
|
---|
[fd8b059] | 111 |
|
---|
[9692a57] | 112 | <listitem>
|
---|
[7088c96] | 113 | <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
|
---|
[9692a57] | 114 | </listitem>
|
---|
| 115 |
|
---|
[a271796] | 116 | <listitem>
|
---|
| 117 | <para><emphasis role="strong">Python-3.4</emphasis></para>
|
---|
| 118 | </listitem>
|
---|
| 119 |
|
---|
[d12ae76] | 120 | <listitem>
|
---|
[7088c96] | 121 | <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
|
---|
[d12ae76] | 122 | </listitem>
|
---|
[fd8b059] | 123 |
|
---|
[d12ae76] | 124 | <listitem>
|
---|
[7380c3aa] | 125 | <para><emphasis role="strong">Tar-1.22</emphasis></para>
|
---|
[d12ae76] | 126 | </listitem>
|
---|
| 127 |
|
---|
[4df39e5] | 128 | <listitem>
|
---|
| 129 | <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
|
---|
| 130 | </listitem>
|
---|
| 131 |
|
---|
[8e771c5] | 132 | <listitem>
|
---|
[44f6add] | 133 | <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
|
---|
[8e771c5] | 134 | </listitem>
|
---|
| 135 |
|
---|
[d12ae76] | 136 | </itemizedlist>
|
---|
| 137 |
|
---|
[72fb9bf] | 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>
|
---|
[e4ab232] | 146 |
|
---|
[d659bf4] | 147 | <!-- Use an empty sect2 element to prevent a pdf warning. -->
|
---|
[a04b192f] | 148 | <bridgehead renderas="sect2"
|
---|
| 149 | id="version-check"
|
---|
[72fb9bf] | 150 | xreflabel="Host System Requirements">
|
---|
| 151 | </bridgehead>
|
---|
| 152 | <!--<title> </title>-->
|
---|
[d659bf4] | 153 |
|
---|
| 154 | <para >To see whether your host system has all the appropriate versions, and
|
---|
[86f3868] | 155 | the ability to compile programs, run the following commands:</para>
|
---|
[5e858e7] | 156 |
|
---|
[b179883] | 157 | <screen role="nodump"><userinput>cat > version-check.sh << "EOF"
|
---|
[5e858e7] | 158 | <literal>#!/bin/bash
|
---|
[2914ab8c] | 159 | # Simple script to list version numbers of critical development tools
|
---|
[5dcff99] | 160 | export LC_ALL=C
|
---|
[5e858e7] | 161 | bash --version | head -n1 | cut -d" " -f2-4
|
---|
[7c4d11a] | 162 | MYSH=$(readlink -f /bin/sh)
|
---|
| 163 | echo "/bin/sh -> $MYSH"
|
---|
[5768244] | 164 | echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
|
---|
[7c4d11a] | 165 | unset MYSH
|
---|
| 166 |
|
---|
[8b37712] | 167 | bc --version | head -n1
|
---|
[727a610] | 168 | echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
|
---|
[172a92e] | 169 | bison --version | head -n1
|
---|
[a02b8ef] | 170 |
|
---|
| 171 | if [ -h /usr/bin/yacc ]; then
|
---|
| 172 | echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
|
---|
| 173 | elif [ -x /usr/bin/yacc ]; then
|
---|
| 174 | echo yacc is `/usr/bin/yacc --version | head -n1`
|
---|
| 175 | else
|
---|
[a04b192f] | 176 | echo "yacc not found"
|
---|
[a02b8ef] | 177 | fi
|
---|
[54d3ed5] | 178 |
|
---|
[baaa5c3] | 179 | echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
|
---|
[5e858e7] | 180 | diff --version | head -n1
|
---|
| 181 | find --version | head -n1
|
---|
| 182 | gawk --version | head -n1
|
---|
[a02b8ef] | 183 |
|
---|
| 184 | if [ -h /usr/bin/awk ]; then
|
---|
| 185 | echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
---|
| 186 | elif [ -x /usr/bin/awk ]; then
|
---|
[09c83f9] | 187 | echo awk is `/usr/bin/awk --version | head -n1`
|
---|
[a04b192f] | 188 | else
|
---|
| 189 | echo "awk not found"
|
---|
[a02b8ef] | 190 | fi
|
---|
[54d3ed5] | 191 |
|
---|
[2e8cbe0] | 192 | gcc --version | head -n1
|
---|
| 193 | g++ --version | head -n1
|
---|
| 194 | grep --version | head -n1
|
---|
| 195 | gzip --version | head -n1
|
---|
[a3b689f] | 196 | cat /proc/version
|
---|
[2e8cbe0] | 197 | m4 --version | head -n1
|
---|
| 198 | make --version | head -n1
|
---|
| 199 | patch --version | head -n1
|
---|
[3ccd4fe] | 200 | echo Perl `perl -V:version`
|
---|
[a271796] | 201 | python3 --version
|
---|
[2e8cbe0] | 202 | sed --version | head -n1
|
---|
| 203 | tar --version | head -n1
|
---|
[a271796] | 204 | makeinfo --version | head -n1 # texinfo version
|
---|
[2e8cbe0] | 205 | xz --version | head -n1
|
---|
[e4bdfc54] | 206 |
|
---|
[3d56263] | 207 | echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
|
---|
[2ca8941] | 208 | if [ -x dummy ]
|
---|
[4fedd8d] | 209 | then echo "g++ compilation OK";
|
---|
| 210 | else echo "g++ compilation failed"; fi
|
---|
[3d2cea9] | 211 | rm -f dummy.c dummy</literal>
|
---|
| 212 | EOF
|
---|
| 213 |
|
---|
| 214 | bash version-check.sh</userinput></screen>
|
---|
[d76a82b2] | 215 | <!--
|
---|
[3d2cea9] | 216 | <para>Also check for some library consistency:</para>
|
---|
[a09a914] | 217 |
|
---|
[3d2cea9] | 218 | <screen role="nodump"><userinput>cat > library-check.sh << "EOF"
|
---|
| 219 | <literal>#!/bin/bash
|
---|
[a09a914] | 220 | for 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
|
---|
| 223 | done
|
---|
| 224 | unset lib</literal>
|
---|
[5e858e7] | 225 | EOF
|
---|
| 226 |
|
---|
[3d2cea9] | 227 | bash library-check.sh</userinput></screen>
|
---|
| 228 |
|
---|
| 229 | <para>The files identified by this script should be all present
|
---|
| 230 | or all absent, but not only one or two present.</para>
|
---|
[d76a82b2] | 231 | -->
|
---|
[7c92d6d] | 232 | </sect2>
|
---|
[d1ebcc8] | 233 | </sect1>
|
---|