1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd" [
3 <!ENTITY % psmisc-entities SYSTEM "../ent/psmisc.ent">
6 <sect1 id="ch06-psmisc">
7 <title>Installing Psmisc-&psmisc-version;</title>
8 <?dbhtml filename="psmisc.html"?>
10 <screen>Estimated build time: 0.1 SBU
11 Estimated required disk space: 2.2 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/psmisc-contents.xml"/>
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/psmisc-deps.xml"/>
22 <title>Installation of Psmisc</title>
24 <para>Prepare Psmisc for compilation:</para>
26 <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
28 <para>The meaning of the configure option:</para>
31 <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
32 binaries to be installed in <filename>/bin</filename> and not in
33 <filename>/usr/bin</filename>. As the Psmisc programs are often used in
34 bootscripts, they should be available also when the <filename>/usr</filename>
35 filesystem isn't mounted.</para></listitem>
38 <para>Compile the package:</para>
40 <screen><userinput>make</userinput></screen>
42 <para>And install it:</para>
44 <screen><userinput>make install</userinput></screen>
46 <para>There is no reason for the <filename>pstree</filename> and
47 <filename>pstree.x11</filename> programs to reside in
48 <filename class="directory">/bin</filename>. We therefore move them to
49 <filename class="directory">/usr/bin</filename>. Also, there is no need
50 for <filename>pstree.x11</filename> to exist as a separate program. We
51 therefore make it a symbolic link to <filename>pstree</filename>:</para>
53 <screen><userinput>mv /bin/pstree* /usr/bin
54 ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
56 <para>By default Psmisc's <userinput>pidof</userinput> program isn't installed.
57 Generally, this isn't a problem because we later install the Sysvinit package,
58 which provides a better <userinput>pidof</userinput> program. But if you're not
59 going to use Sysvinit, you should complete the installation of Psmisc by
60 creating the following symlink:</para>
62 <screen><userinput>ln -s killall /bin/pidof</userinput></screen>