6.56. Installing Psmisc-21

Estimated build time:           0.11 SBU
Estimated required disk space:  2 MB

6.56.1. Installation of Psmisc

Install Psmisc by running the following commands:

./configure --prefix=/usr --exec-prefix=/ &&
make &&
make install

Psmisc installs the /usr/share/man/man1/pidof.1 man page, but Psmisc's pidof program isn't installed by default. Generally this isn't a problem, because we install the Sysvinit package later on which provides a better pidof program.

It's up to you now to decide if you are going to use the Sysvinit package which provides a pidof program, or not. If you are going to, you should remove Psmisc's pidof man page by running:

rm /usr/share/man/man1/pidof.1

If you're not going to use Sysvinit, you should complete this package's installation by creating the /bin/pidof symlink by running:

ln -s killall /bin/pidof

6.56.2. Command explanations

--exec-prefix=/: This will cause the programs to be installed in /bin rather than in /usr/bin. The programs in this package are often used in bootscripts, so they should be in the /bin directory so they can be used when the /usr partition isn't mounted yet.

6.56.3. Contents of Psmisc

Last checked against version 21.

6.56.4. Psmisc Installation Dependencies

Last checked against version 20.2.

Autoconf: autoconf, autoheader
Automake: aclocal, automake
Bash: sh
Bison: bison
Binutils: as, ld
Diffutils: cmp
Fileutils: chmod, install, ls, mkdir, mv, rm
Gettext: msgfmt, xgettext
Gcc: cc, cc1, collect2, cpp0, gcc
Grep: egrep, grep
M4: m4
Make: make
Gawk: gawk
Sed: sed
Sh-utils: basename, echo, expr, hostname, sleep, uname
Texinfo: makeinfo
Textutils: cat, tr