utillinux.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect1 id="ch05-utillinux">
  2. <title>Installing Util-linux-&util-linux-version;</title>
  3. <?dbhtml filename="util-linux.html" dir="chapter05"?>
  4. <screen>Estimated build time: &util-linux-time-tools;
  5. Estimated required disk space: &util-linux-compsize-tools;</screen>
  6. <para>For the package details see <xref linkend="contents-utillinux"/>.</para>
  7. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  8. <sect2>
  9. <title>Installation of Util-linux</title>
  10. <para>Util-linux doesn't use the freshly installed headers and libraries from
  11. the /tools directory. This is fixed by altering the configure script:</para>
  12. <screen><userinput>cp configure configure.backup
  13. sed "s@/usr/include@/tools/include@g" configure.backup &gt; configure</userinput> </screen>
  14. <para>Prepare Util-linux for compilation:</para>
  15. <screen><userinput>./configure</userinput></screen>
  16. <para>Compile some support routines:</para>
  17. <screen><userinput>make -C lib</userinput></screen>
  18. <para>And, since you'll need only a couple of the utilities contained in this
  19. package, build just those:</para>
  20. <screen><userinput>make -C mount mount umount
  21. make -C text-utils more</userinput></screen>
  22. <para>Now copy these programs to the temporary tools directory:</para>
  23. <screen><userinput>cp mount/{,u}mount text-utils/more /tools/bin</userinput></screen>
  24. </sect2>
  25. </sect1>