[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 |
|
---|
[fd8b059] | 13 | <para>Your host system should have the following software with the
|
---|
| 14 | minimum versions indicated. This should not be an issue for most
|
---|
| 15 | modern Linux distributions. Also note that many distributions will
|
---|
| 16 | place software headers into separate packages, often in the form of
|
---|
| 17 | <quote><package-name>-devel</quote> or
|
---|
| 18 | <quote><package-name>-dev</quote>. Be sure to install those if
|
---|
[5e858e7] | 19 | your distribution provides them.</para>
|
---|
[d12ae76] | 20 |
|
---|
[72fb9bf] | 21 | <para>Earlier versions of the listed software packages may work, but have
|
---|
| 22 | not been tested.</para>
|
---|
[7088c96] | 23 |
|
---|
[bf5724b] | 24 | <itemizedlist spacing="compact">
|
---|
[fd8b059] | 25 |
|
---|
[d12ae76] | 26 | <listitem>
|
---|
[7088c96] | 27 | <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
|
---|
[e4ab232] | 28 | should be a symbolic or hard link to bash)</para>
|
---|
[d12ae76] | 29 | </listitem>
|
---|
[fd8b059] | 30 |
|
---|
[d12ae76] | 31 | <listitem>
|
---|
[d6006ef] | 32 | <para><emphasis role="strong">Binutils-2.13.1</emphasis> (Versions
|
---|
[fd8b059] | 33 | greater than &binutils-version; are not recommended as they have
|
---|
| 34 | not been tested)</para>
|
---|
[d12ae76] | 35 | </listitem>
|
---|
[fd8b059] | 36 |
|
---|
[07dfccb] | 37 | <listitem>
|
---|
[b55310e] | 38 | <para><emphasis role="strong">Bison-2.7</emphasis> (/usr/bin/yacc
|
---|
[e4ab232] | 39 | should be a link to bison or small script that executes bison)</para>
|
---|
[07dfccb] | 40 | </listitem>
|
---|
| 41 |
|
---|
[d12ae76] | 42 | <listitem>
|
---|
[7088c96] | 43 | <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
|
---|
[d12ae76] | 44 | </listitem>
|
---|
[fd8b059] | 45 |
|
---|
[d12ae76] | 46 | <listitem>
|
---|
[7088c96] | 47 | <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
|
---|
[d12ae76] | 48 | </listitem>
|
---|
[fd8b059] | 49 |
|
---|
[d12ae76] | 50 | <listitem>
|
---|
[7088c96] | 51 | <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
|
---|
[d12ae76] | 52 | </listitem>
|
---|
[fd8b059] | 53 |
|
---|
[d12ae76] | 54 | <listitem>
|
---|
[3fbc395] | 55 | <para><emphasis role="strong">Gawk-4.0.1</emphasis> (/usr/bin/awk
|
---|
[e4ab232] | 56 | should be a link to gawk)</para>
|
---|
[d12ae76] | 57 | </listitem>
|
---|
[fd8b059] | 58 |
|
---|
[d12ae76] | 59 | <listitem>
|
---|
[d6006ef] | 60 | <para><emphasis role="strong">GCC-4.8</emphasis> including the C++
|
---|
[142b29b] | 61 | compiler, <command>g++</command> (Versions greater than &gcc-version; are
|
---|
[d6006ef] | 62 | not recommended as they have not been tested). C and C++ standard
|
---|
| 63 | libraries (with headers) must also be present so the C++ compiler can
|
---|
| 64 | build hosted programs</para>
|
---|
[d12ae76] | 65 | </listitem>
|
---|
[fd8b059] | 66 |
|
---|
[d12ae76] | 67 | <listitem>
|
---|
[7088c96] | 68 | <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
|
---|
[d12ae76] | 69 | </listitem>
|
---|
[fd8b059] | 70 |
|
---|
[d12ae76] | 71 | <listitem>
|
---|
[7088c96] | 72 | <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
|
---|
[d12ae76] | 73 | </listitem>
|
---|
[fd8b059] | 74 |
|
---|
[787fe0c] | 75 | <listitem>
|
---|
[7088c96] | 76 | <para><emphasis role="strong">M4-1.4.10</emphasis></para>
|
---|
[787fe0c] | 77 | </listitem>
|
---|
| 78 |
|
---|
[d12ae76] | 79 | <listitem>
|
---|
[76db8d6] | 80 | <para><emphasis role="strong">Make-4.0</emphasis></para>
|
---|
[d12ae76] | 81 | </listitem>
|
---|
[fd8b059] | 82 |
|
---|
[d12ae76] | 83 | <listitem>
|
---|
[fd8b059] | 84 | <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
|
---|
[d12ae76] | 85 | </listitem>
|
---|
[fd8b059] | 86 |
|
---|
[9692a57] | 87 | <listitem>
|
---|
[7088c96] | 88 | <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
|
---|
[9692a57] | 89 | </listitem>
|
---|
| 90 |
|
---|
[a271796] | 91 | <listitem>
|
---|
| 92 | <para><emphasis role="strong">Python-3.4</emphasis></para>
|
---|
| 93 | </listitem>
|
---|
| 94 |
|
---|
[d12ae76] | 95 | <listitem>
|
---|
[7088c96] | 96 | <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
|
---|
[d12ae76] | 97 | </listitem>
|
---|
[fd8b059] | 98 |
|
---|
[d12ae76] | 99 | <listitem>
|
---|
[7380c3aa] | 100 | <para><emphasis role="strong">Tar-1.22</emphasis></para>
|
---|
[d12ae76] | 101 | </listitem>
|
---|
| 102 |
|
---|
[4df39e5] | 103 | <listitem>
|
---|
| 104 | <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
|
---|
| 105 | </listitem>
|
---|
| 106 |
|
---|
[8e771c5] | 107 | <listitem>
|
---|
[44f6add] | 108 | <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
|
---|
[8e771c5] | 109 | </listitem>
|
---|
| 110 |
|
---|
[d12ae76] | 111 | </itemizedlist>
|
---|
| 112 |
|
---|
[72fb9bf] | 113 | <important>
|
---|
| 114 | <para>Note that the symlinks mentioned above are required to build an LFS
|
---|
| 115 | system using the instructions contained within this book. Symlinks that
|
---|
| 116 | point to other software (such as dash, mawk, etc.) may work, but are not
|
---|
| 117 | tested or supported by the LFS development team, and may require either
|
---|
| 118 | deviation from the instructions or additional patches to some
|
---|
| 119 | packages.</para>
|
---|
| 120 | </important>
|
---|
[e4ab232] | 121 |
|
---|
[d659bf4] | 122 | <!-- Use an empty sect2 element to prevent a pdf warning. -->
|
---|
[a04b192f] | 123 | <bridgehead renderas="sect2"
|
---|
| 124 | id="version-check"
|
---|
[72fb9bf] | 125 | xreflabel="Host System Requirements">
|
---|
| 126 | </bridgehead>
|
---|
| 127 | <!--<title> </title>-->
|
---|
[d659bf4] | 128 |
|
---|
| 129 | <para >To see whether your host system has all the appropriate versions, and
|
---|
[26b4421] | 130 | the ability to compile programs, run the following:</para>
|
---|
[5e858e7] | 131 |
|
---|
[b179883] | 132 | <screen role="nodump"><userinput>cat > version-check.sh << "EOF"
|
---|
[5e858e7] | 133 | <literal>#!/bin/bash
|
---|
[2914ab8c] | 134 | # Simple script to list version numbers of critical development tools
|
---|
[5dcff99] | 135 | export LC_ALL=C
|
---|
[5e858e7] | 136 | bash --version | head -n1 | cut -d" " -f2-4
|
---|
[7c4d11a] | 137 | MYSH=$(readlink -f /bin/sh)
|
---|
| 138 | echo "/bin/sh -> $MYSH"
|
---|
[5768244] | 139 | echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
|
---|
[7c4d11a] | 140 | unset MYSH
|
---|
| 141 |
|
---|
[727a610] | 142 | echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
|
---|
[172a92e] | 143 | bison --version | head -n1
|
---|
[a02b8ef] | 144 |
|
---|
| 145 | if [ -h /usr/bin/yacc ]; then
|
---|
| 146 | echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
|
---|
| 147 | elif [ -x /usr/bin/yacc ]; then
|
---|
| 148 | echo yacc is `/usr/bin/yacc --version | head -n1`
|
---|
| 149 | else
|
---|
[a04b192f] | 150 | echo "yacc not found"
|
---|
[a02b8ef] | 151 | fi
|
---|
[54d3ed5] | 152 |
|
---|
[baaa5c3] | 153 | echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
|
---|
[5e858e7] | 154 | diff --version | head -n1
|
---|
| 155 | find --version | head -n1
|
---|
| 156 | gawk --version | head -n1
|
---|
[a02b8ef] | 157 |
|
---|
| 158 | if [ -h /usr/bin/awk ]; then
|
---|
| 159 | echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
---|
| 160 | elif [ -x /usr/bin/awk ]; then
|
---|
[09c83f9] | 161 | echo awk is `/usr/bin/awk --version | head -n1`
|
---|
[a04b192f] | 162 | else
|
---|
| 163 | echo "awk not found"
|
---|
[a02b8ef] | 164 | fi
|
---|
[54d3ed5] | 165 |
|
---|
[2e8cbe0] | 166 | gcc --version | head -n1
|
---|
| 167 | g++ --version | head -n1
|
---|
| 168 | grep --version | head -n1
|
---|
| 169 | gzip --version | head -n1
|
---|
[a3b689f] | 170 | cat /proc/version
|
---|
[2e8cbe0] | 171 | m4 --version | head -n1
|
---|
| 172 | make --version | head -n1
|
---|
| 173 | patch --version | head -n1
|
---|
[3ccd4fe] | 174 | echo Perl `perl -V:version`
|
---|
[a271796] | 175 | python3 --version
|
---|
[2e8cbe0] | 176 | sed --version | head -n1
|
---|
| 177 | tar --version | head -n1
|
---|
[a271796] | 178 | makeinfo --version | head -n1 # texinfo version
|
---|
[2e8cbe0] | 179 | xz --version | head -n1
|
---|
[e4bdfc54] | 180 |
|
---|
[3d56263] | 181 | echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
|
---|
[2ca8941] | 182 | if [ -x dummy ]
|
---|
[4fedd8d] | 183 | then echo "g++ compilation OK";
|
---|
| 184 | else echo "g++ compilation failed"; fi
|
---|
[3d2cea9] | 185 | rm -f dummy.c dummy</literal>
|
---|
| 186 | EOF
|
---|
| 187 |
|
---|
| 188 | bash version-check.sh</userinput></screen>
|
---|
[d76a82b2] | 189 | <!--
|
---|
[3d2cea9] | 190 | <para>Also check for some library consistency:</para>
|
---|
[a09a914] | 191 |
|
---|
[3d2cea9] | 192 | <screen role="nodump"><userinput>cat > library-check.sh << "EOF"
|
---|
| 193 | <literal>#!/bin/bash
|
---|
[a09a914] | 194 | for lib in lib{gmp,mpfr,mpc}.la; do
|
---|
| 195 | echo $lib: $(if find /usr/lib* -name $lib|
|
---|
| 196 | grep -q $lib;then :;else echo not;fi) found
|
---|
| 197 | done
|
---|
| 198 | unset lib</literal>
|
---|
[5e858e7] | 199 | EOF
|
---|
| 200 |
|
---|
[3d2cea9] | 201 | bash library-check.sh</userinput></screen>
|
---|
| 202 |
|
---|
| 203 | <para>The files identified by this script should be all present
|
---|
| 204 | or all absent, but not only one or two present.</para>
|
---|
[d76a82b2] | 205 | -->
|
---|
[3d2cea9] | 206 |
|
---|
[d1ebcc8] | 207 | </sect1>
|
---|