2003-01-16 02:12:18 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2002-03-09 02:54:58 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Gawk</title>
|
|
|
|
|
2003-02-05 18:29:23 +00:00
|
|
|
<para>Before installing the Gawk package you have to apply a patch,
|
2003-02-04 05:18:40 +00:00
|
|
|
which fixes the following issues:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>Gawk's default location for libexecdir is <filename
|
|
|
|
class="directory">$prefix/libexecdir/awk</filename>. This location doesn't
|
2003-02-05 18:29:23 +00:00
|
|
|
comply with FHS (which never mentions a directory called
|
2003-02-04 05:18:40 +00:00
|
|
|
libexecdir).</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>The patch allows us to pass
|
|
|
|
<emphasis>--libexecdir</emphasis> to the configure script (without gawk
|
|
|
|
tacking on /awk to the end), so that we can use a more appropriate location
|
|
|
|
for gawk's libexecdir (<filename class="directory">/usr/bin</filename> in
|
|
|
|
the book).</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>The default data directory for gawk is <filename
|
|
|
|
class="directory">$prefix/share/awk</filename>. A package specific
|
2003-10-18 03:38:12 +01:00
|
|
|
directory should be named using the package and version (like
|
|
|
|
gawk-&gawk-version; instead of awk) because there may be more than one awk
|
|
|
|
interpreter on a system (and more than one version of gawk). The patch changes
|
|
|
|
this to <filename class="directory">$prefix/share/gawk-&gawk-version;</filename>
|
|
|
|
to be more correct.</para></listitem>
|
2003-02-04 05:18:40 +00:00
|
|
|
|
|
|
|
<listitem><para>The patch ensures that this directory (<filename
|
2003-10-18 03:38:12 +01:00
|
|
|
class="directory">$prefix/share/gawk-&gawk-version;</filename>) is removed along
|
2003-02-04 05:18:40 +00:00
|
|
|
with its contents on a make uninstall.</para></listitem>
|
|
|
|
</itemizedlist>
|
2003-01-16 02:12:18 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>patch -Np1 -i ../&gawk-patch;</userinput></screen>
|
2003-01-16 02:12:18 +00:00
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Now prepare Gawk for compilation:</para>
|
2003-01-16 02:12:18 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen>
|
2003-01-16 02:12:18 +00:00
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Compile the package:</para>
|
2003-01-16 02:12:18 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>make</userinput></screen>
|
2002-05-30 12:51:27 +01:00
|
|
|
|
2003-09-21 08:31:01 +01:00
|
|
|
<para>This package has a test suite available which can perform a number of
|
2003-09-11 21:07:44 +01:00
|
|
|
checks to ensure it built correctly. Should you choose to run it, the
|
|
|
|
following command will do so:</para>
|
2003-08-30 00:20:23 +01:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>make check</userinput></screen>
|
2003-05-13 08:38:47 +01:00
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>And install the package:</para>
|
2002-03-09 02:54:58 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>make install</userinput></screen>
|
2002-03-09 02:54:58 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|