psmisc.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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>There is no reason for the <filename>pstree</filename> and
  26. <filename>pstree.x11</filename> programs to reside in
  27. <filename class="directory">/bin</filename>. We therefore move them to
  28. <filename class="directory">/usr/bin</filename>. Also, there is no need
  29. for <filename>pstree.x11</filename> to exist as a separate program. We
  30. therefore make it a symbolic link to <filename>pstree</filename>:</para>
  31. <screen><userinput>mv /bin/pstree* /usr/bin
  32. ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
  33. <para>By default Psmisc's <userinput>pidof</userinput> program isn't installed.
  34. Generally, this isn't a problem because we later install the Sysvinit package,
  35. which provides a better <userinput>pidof</userinput> program. But if you're not
  36. going to use Sysvinit, you should complete the installation of Psmisc by
  37. creating the following symlink:</para>
  38. <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
  39. </sect2>
  40. </sect1>