hostreqs.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. <sect1 id="pre-hostreqs">
  8. <?dbhtml filename="hostreqs.html"?>
  9. <title>Host System Requirements</title>
  10. <para>Your host system should have the following software with the
  11. minimum versions indicated. This should not be an issue for most
  12. modern Linux distributions. Also note that many distributions will
  13. place software headers into separate packages, often in the form of
  14. <quote>&lt;package-name&gt;-devel</quote> or
  15. <quote>&lt;package-name&gt;-dev</quote>. Be sure to install those if
  16. your distribution provides them.</para>
  17. <para>Earlier versions of the listed software packages may work, but has not
  18. been tested.</para>
  19. <itemizedlist spacing="compact">
  20. <listitem>
  21. <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
  22. should be a symbolic or hard link to bash)</para>
  23. </listitem>
  24. <listitem>
  25. <para><emphasis role="strong">Binutils-2.17</emphasis> (Versions
  26. greater than &binutils-version; are not recommended as they have
  27. not been tested)</para>
  28. </listitem>
  29. <listitem>
  30. <para><emphasis role="strong">Bison-2.3</emphasis> (/usr/bin/yacc
  31. should be a link to bison or small script that executes bison)</para>
  32. </listitem>
  33. <listitem>
  34. <para><emphasis role="strong">Bzip2-1.0.4</emphasis></para>
  35. </listitem>
  36. <listitem>
  37. <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
  38. </listitem>
  39. <listitem>
  40. <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
  41. </listitem>
  42. <listitem>
  43. <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
  44. </listitem>
  45. <listitem>
  46. <para><emphasis role="strong">Gawk-3.1.5</emphasis> (/usr/bin/awk
  47. should be a link to gawk)</para>
  48. </listitem>
  49. <listitem>
  50. <para><emphasis role="strong">Gcc-4.1.2</emphasis> (Versions
  51. greater than &gcc-version; are not recommended as they have not
  52. been tested)</para>
  53. </listitem>
  54. <listitem>
  55. <para><emphasis role="strong">Glibc-2.5.1</emphasis> (Versions
  56. greater than &glibc-version; are not recommended as they have
  57. not been tested)</para>
  58. </listitem>
  59. <listitem>
  60. <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
  61. </listitem>
  62. <listitem>
  63. <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
  64. </listitem>
  65. <listitem>
  66. <para><emphasis role="strong">Linux Kernel-2.6.25</emphasis>
  67. (having been compiled with GCC-4.1.2 or greater)</para>
  68. <para>The reason for the kernel version requirement is that we specify
  69. that version when building <application>glibc</application> in Chapter 6
  70. at the recommendation of the developers. It is also required by
  71. udev.</para>
  72. <para>If the host kernel is either earlier than 2.6.25, or it was not
  73. compiled using a GCC-4.1.2 (or later) compiler, you will need to replace
  74. the kernel with one adhering to the specifications. There are two ways
  75. you can go about this. First, see if your Linux vendor provides a 2.6.25
  76. or later kernel package. If so, you may wish to install it. If your
  77. vendor doesn't offer an acceptable kernel package, or you would prefer not to
  78. install it, you can compile a kernel yourself. Instructions for
  79. compiling the kernel and configuring the boot loader (assuming the host
  80. uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
  81. </listitem>
  82. <listitem>
  83. <para><emphasis role="strong">M4-1.4.10</emphasis></para>
  84. </listitem>
  85. <listitem>
  86. <para><emphasis role="strong">Make-3.81</emphasis></para>
  87. </listitem>
  88. <listitem>
  89. <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
  90. </listitem>
  91. <listitem>
  92. <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
  93. </listitem>
  94. <listitem>
  95. <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
  96. </listitem>
  97. <listitem>
  98. <para><emphasis role="strong">Tar-1.18</emphasis></para>
  99. </listitem>
  100. <!-- Needed by the apparently broken Binutils-2.18 -->
  101. <listitem>
  102. <para><emphasis role="strong">Texinfo-4.9</emphasis></para>
  103. </listitem>
  104. </itemizedlist>
  105. <para>Note that the symlinks mentioned above are required to build an LFS
  106. system using the instructions contained within this book. Symlinks that
  107. point to other software (such as dash, mawk, etc.) may work, but are not
  108. tested or supported by the LFS development team, and may require either
  109. deviation from the instructions or additional patches to some
  110. packages.</para>
  111. <para id="version-check">To see whether your host system has all the appropriate versions, and
  112. the ability to compile programs, run the following:</para>
  113. <!--<anchor xreflabel="Version Check Script" id="version-check"/>-->
  114. <screen role="nodump"><userinput>cat &gt; version-check.sh &lt;&lt; "EOF"
  115. <literal>#!/bin/bash
  116. export LC_ALL=C
  117. # Simple script to list version numbers of critical development tools
  118. bash --version | head -n1 | cut -d" " -f2-4
  119. echo "/bin/sh -> `readlink -f /bin/sh`"
  120. echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
  121. bison --version | head -n1
  122. if [ -e /usr/bin/yacc ];
  123. then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
  124. else echo "yacc not found"; fi
  125. bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d" " -f1,6-
  126. echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
  127. diff --version | head -n1
  128. find --version | head -n1
  129. gawk --version | head -n1
  130. if [ -e /usr/bin/awk ];
  131. then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
  132. else echo "awk not found"; fi
  133. gcc --version | head -n1
  134. /lib/libc.so.6 | head -n1 | cut -d"," -f1
  135. grep --version | head -n1
  136. gzip --version | head -n1
  137. cat /proc/version
  138. m4 --version | head -n1
  139. make --version | head -n1
  140. patch --version | head -n1
  141. echo Perl `perl -V:version`
  142. sed --version | head -n1
  143. tar --version | head -n1
  144. echo "Texinfo: `makeinfo --version | head -n1`"
  145. echo 'main(){}' > dummy.c &amp;&amp; gcc -o dummy dummy.c
  146. if [ -x dummy ]; then echo "Compilation OK";
  147. else echo "Compilation failed"; fi
  148. rm -f dummy.c dummy
  149. </literal>
  150. EOF
  151. bash version-check.sh</userinput></screen>
  152. </sect1>