Changed sulogin's respawn in inittab to 'once'
[linux_from_scratch.git] / BOOK / chapter06 / gawk-inst.xml
blob29c1b421f7f84dcd590acc1714b26cac20c29f81
1 <sect2>
2 <title>Installation of Gawk</title>
4 <para>This package requires its patch to be applied before you can
5 install it. Make sure it's unpacked before running the installation 
6 commands.</para>
8 <para>Warning: do NOT run <userinput>make uninstall</userinput> on this
9 package if you apply the patch to change the
10 <filename class="directory">libexec</filename> directory definition. The
11 <emphasis>uninstall</emphasis> rule in the <filename>Makefile</filename>
12 file runs a command like <userinput>rm -rf
13 &lt;libexecdir&gt;/*</userinput> Since we change the <filename
14 class="directory">libexec</filename> directory to <filename
15 class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
16 /usr/bin/*</userinput></para>
18 <para>Install Gawk by running the following commands:</para>
20 <para><screen><userinput>patch -Np1 -i ../gawk-&gawk-patch-version;.patch &amp;&amp;
21 ./configure --prefix=/usr --libexecdir=/usr/bin &amp;&amp;
22 make &amp;&amp;
23 make install</userinput></screen></para>
25 </sect2>