aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/psmisc-inst.xml
blob: 59780e6f627c1142fd66977dfb48904a818ca6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Psmisc</title>

<para>Prepare Psmisc for compilation:</para>

<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen></para>

<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>

<para><screen><userinput>make</userinput></screen></para>

<para>And install it:</para>

<para><screen><userinput>make install</userinput></screen></para>

<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>

<para><screen><userinput>ln -s killall /bin/pidof</userinput></screen></para>

</sect2>