psmisc.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <sect1 id="ch06-psmisc">
  2. <title>Installing Psmisc-&psmisc-version;</title>
  3. <?dbhtml filename="psmisc.html" dir="chapter06"?>
  4. <screen>Estimated build time: &psmisc-time;
  5. Estimated required disk space: &psmisc-compsize;</screen>
  6. &aa-psmisc-shortdesc;
  7. &aa-psmisc-dep;
  8. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  9. <sect2>
  10. <title>Installation of Psmisc</title>
  11. <para>Prepare Psmisc for compilation:</para>
  12. <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
  13. <para>The meaning of the configure option:</para>
  14. <itemizedlist>
  15. <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
  16. binaries to be installed in <filename>/bin</filename> and not in
  17. <filename>/usr/bin</filename>. As the Psmisc programs are often used in
  18. bootscripts, they should be available also when the <filename>/usr</filename>
  19. filesystem isn't mounted.</para></listitem>
  20. </itemizedlist>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>And install it:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. <para>By default Psmisc's <userinput>pidof</userinput> program isn't installed.
  26. Generally, this isn't a problem because we later install the Sysvinit package,
  27. which provides a better <userinput>pidof</userinput> program. But if you're not
  28. going to use Sysvinit, you should complete the installation of Psmisc by
  29. creating the following symlink:</para>
  30. <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
  31. </sect2>
  32. </sect1>