[3be4d97] | 1 | <sect1 id="ch-system-psmisc" xreflabel="Psmisc">
|
---|
[793c2f7] | 2 | <title>Installing Psmisc-&psmisc-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="psmisc.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[5888299] | 5 | <para>The Psmisc package contains programs for displaying information on
|
---|
| 6 | processes.</para>
|
---|
| 7 |
|
---|
[69276a94] | 8 | <screen>&buildtime; &psmisc-time;
|
---|
| 9 | &diskspace; &psmisc-compsize;</screen>
|
---|
[3554fa3a] | 10 |
|
---|
[5888299] | 11 | &aa-psmisc-down;
|
---|
[d0dfce4] | 12 | &aa-psmisc-dep;
|
---|
[73aedd1d] | 13 |
|
---|
| 14 | <sect2><title> </title><para> </para></sect2>
|
---|
| 15 |
|
---|
| 16 | <sect2>
|
---|
| 17 | <title>Installation of Psmisc</title>
|
---|
| 18 |
|
---|
| 19 | <para>Prepare Psmisc for compilation:</para>
|
---|
| 20 |
|
---|
| 21 | <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
|
---|
| 22 |
|
---|
| 23 | <para>The meaning of the configure option:</para>
|
---|
| 24 |
|
---|
| 25 | <itemizedlist>
|
---|
| 26 | <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
|
---|
| 27 | binaries to be installed in <filename>/bin</filename> and not in
|
---|
| 28 | <filename>/usr/bin</filename>. As the Psmisc programs are often used in
|
---|
| 29 | bootscripts, they should be available also when the <filename>/usr</filename>
|
---|
[ab3b93b] | 30 | file system isn't mounted.</para></listitem>
|
---|
[73aedd1d] | 31 | </itemizedlist>
|
---|
| 32 |
|
---|
| 33 | <para>Compile the package:</para>
|
---|
| 34 |
|
---|
| 35 | <screen><userinput>make</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <para>And install it:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>make install</userinput></screen>
|
---|
| 40 |
|
---|
[10e1008] | 41 | <para>There is no reason for the <filename>pstree</filename> and
|
---|
| 42 | <filename>pstree.x11</filename> programs to reside in
|
---|
| 43 | <filename class="directory">/bin</filename>. We therefore move them to
|
---|
| 44 | <filename class="directory">/usr/bin</filename>. Also, there is no need
|
---|
| 45 | for <filename>pstree.x11</filename> to exist as a separate program. We
|
---|
| 46 | therefore make it a symbolic link to <filename>pstree</filename>:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>mv /bin/pstree* /usr/bin
|
---|
| 49 | ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
|
---|
| 50 |
|
---|
[90e3cb3] | 51 | <para>By default Psmisc's <command>pidof</command> program isn't installed.
|
---|
[73aedd1d] | 52 | Generally, this isn't a problem because we later install the Sysvinit package,
|
---|
[90e3cb3] | 53 | which provides a better <command>pidof</command> program. But if you're not
|
---|
[73aedd1d] | 54 | going to use Sysvinit, you should complete the installation of Psmisc by
|
---|
| 55 | creating the following symlink:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | </sect2>
|
---|
[6370fa6] | 60 |
|
---|
[5888299] | 61 | &aa-psmisc-shortdesc;
|
---|
| 62 | &aa-psmisc-desc;
|
---|
| 63 |
|
---|
[6370fa6] | 64 | </sect1>
|
---|
[73aedd1d] | 65 |
|
---|