aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/findutils-inst.xml
blob: b186dcb38e426ccf0412e639bc87c2ab215ae9f7 (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
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installing Findutils</title>

<para>A patch must be applied in order to prevent compilation
errors. The patch fixes a variable conflict and some bad syntax.
Issue the following command to apply this patch:</para>

<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch</userinput></screen></para>

<para>The <userinput>locate</userinput> program from Findutils may
segfault if it encounters a long path name. To correct this, apply
the second patch:</para>

<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch</userinput></screen></para>

<para>Prepare Findutils to be compiled:</para>

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

<para>By default, the location of the updatedb database is in /usr/var.
To make the location of <filename>/var/lib/misc/locatedb</filename> file
FHS compliant, pass the <emphasis>localstatedir=/var/lib/misc</emphasis>
option to both <userinput>make</userinput> commands below.</para>

<para>Continue with compiling the package:</para>

<para><screen><userinput>make libexecdir=/usr/bin</userinput></screen></para>

<para>Finish installing the package:</para>

<para><screen><userinput>make libexecdir=/usr/bin install</userinput></screen></para>

</sect2>