1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <sect1 id="ch06-psmisc" xreflabel="Psmisc">
- <title>Installing Psmisc-&psmisc-version;</title>
- <?dbhtml filename="psmisc.html" dir="chapter06"?>
- <para>The Psmisc package contains programs for displaying information on
- processes.</para>
- <screen>&buildtime; &psmisc-time;
- &diskspace; &psmisc-compsize;</screen>
- &aa-psmisc-down;
- &aa-psmisc-dep;
- <sect2><title> </title><para> </para></sect2>
- <sect2>
- <title>Installation of Psmisc</title>
- <para>Prepare Psmisc for compilation:</para>
- <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
- <para>The meaning of the configure option:</para>
- <itemizedlist>
- <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
- binaries to be installed in <filename>/bin</filename> and not in
- <filename>/usr/bin</filename>. As the Psmisc programs are often used in
- bootscripts, they should be available also when the <filename>/usr</filename>
- filesystem isn't mounted.</para></listitem>
- </itemizedlist>
- <para>Compile the package:</para>
- <screen><userinput>make</userinput></screen>
- <para>And install it:</para>
- <screen><userinput>make install</userinput></screen>
- <para>There is no reason for the <filename>pstree</filename> and
- <filename>pstree.x11</filename> programs to reside in
- <filename class="directory">/bin</filename>. We therefore move them to
- <filename class="directory">/usr/bin</filename>. Also, there is no need
- for <filename>pstree.x11</filename> to exist as a separate program. We
- therefore make it a symbolic link to <filename>pstree</filename>:</para>
- <screen><userinput>mv /bin/pstree* /usr/bin
- ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
- <para>By default Psmisc's <userinput>pidof</userinput> program isn't installed.
- Generally, this isn't a problem because we later install the Sysvinit package,
- which provides a better <userinput>pidof</userinput> program. But if you're not
- going to use Sysvinit, you should complete the installation of Psmisc by
- creating the following symlink:</para>
- <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
- </sect2>
- &aa-psmisc-shortdesc;
- &aa-psmisc-desc;
- </sect1>
|