e2fsprogs-inst.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of E2fsprogs</title>
  4. <para>It is recommended to build E2fsprogs outside of the
  5. source tree:</para>
  6. <para><screen><userinput>mkdir ../e2fsprogs-build
  7. cd ../e2fsprogs-build</userinput></screen></para>
  8. <para>Prepare E2fsprogs for compilation:</para>
  9. <para><screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \
  10. &nbsp;&nbsp;&nbsp;&nbsp;--enable-elf-shlibs</userinput></screen></para>
  11. <para>The meaning of the configure options:</para>
  12. <itemizedlist>
  13. <listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
  14. programs (such as the e2fsck program) are considered essential programs.
  15. When, for example, <filename class="directory">/usr</filename> isn't
  16. mounted, these essential program have to be available. They belong in
  17. directories like <filename class="directory">/lib</filename> and
  18. <filename class="directory">/sbin</filename>. If this option isn't passed
  19. to E2fsprogs's configure, the programs are placed in the
  20. <filename class="directory">/usr</filename> directory, which is not what we
  21. want.</para></listitem>
  22. <listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
  23. the shared libraries which some programs in this package make use
  24. of.</para></listitem>
  25. </itemizedlist>
  26. <para>Compile the package:</para>
  27. <para><screen><userinput>make</userinput></screen></para>
  28. <para>This package has a test suite available which can perform a number of
  29. checks to ensure it built correctly. Should you choose to run it, the
  30. following command will do so:</para>
  31. <para><screen><userinput>make check</userinput></screen></para>
  32. <para>Install most of the package:</para>
  33. <para><screen><userinput>make install</userinput></screen></para>
  34. <para>And install also the shared libraries:</para>
  35. <para><screen><userinput>make install-libs</userinput></screen></para>
  36. </sect2>