[fd296c1] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
[9602db22] | 3 | <sect2>
|
---|
| 4 | <title>Installation of Gawk</title>
|
---|
| 5 |
|
---|
[fdfb226] | 6 | <para>Before installing the Gawk package you have to apply a patch,
|
---|
[a20bfb4] | 7 | which fixes the following issues:</para>
|
---|
| 8 |
|
---|
| 9 | <itemizedlist>
|
---|
| 10 | <listitem><para>Gawk's default location for libexecdir is <filename
|
---|
| 11 | class="directory">$prefix/libexecdir/awk</filename>. This location doesn't
|
---|
[fdfb226] | 12 | comply with FHS (which never mentions a directory called
|
---|
[a20bfb4] | 13 | libexecdir).</para></listitem>
|
---|
| 14 |
|
---|
| 15 | <listitem><para>The patch allows us to pass
|
---|
| 16 | <emphasis>--libexecdir</emphasis> to the configure script (without gawk
|
---|
| 17 | tacking on /awk to the end), so that we can use a more appropriate location
|
---|
| 18 | for gawk's libexecdir (<filename class="directory">/usr/bin</filename> in
|
---|
| 19 | the book).</para></listitem>
|
---|
| 20 |
|
---|
| 21 | <listitem><para>The default data directory for gawk is <filename
|
---|
| 22 | class="directory">$prefix/share/awk</filename>. A package specific
|
---|
[85d2668] | 23 | directory should be named using the package and version (like gawk-3.1.3
|
---|
[a20bfb4] | 24 | instead of awk) because there may be more than one awk interpreter on a
|
---|
| 25 | system (and more than one version of gawk). The patch changes this to
|
---|
[85d2668] | 26 | <filename class="directory">$prefix/share/gawk-3.1.3</filename> to be more
|
---|
[a20bfb4] | 27 | correct.</para></listitem>
|
---|
| 28 |
|
---|
| 29 | <listitem><para>The patch ensures that this directory (<filename
|
---|
[85d2668] | 30 | class="directory">$prefix/share/gawk-3.1.3</filename>) is removed along
|
---|
[a20bfb4] | 31 | with its contents on a make uninstall.</para></listitem>
|
---|
| 32 | </itemizedlist>
|
---|
[fd296c1] | 33 |
|
---|
| 34 | <para><screen><userinput>patch -Np1 -i ../gawk-&gawk-patch-version;.patch</userinput></screen></para>
|
---|
| 35 |
|
---|
[a78a9b4] | 36 | <para>Prepare Gawk to be compiled:</para>
|
---|
[fd296c1] | 37 |
|
---|
| 38 | <para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen></para>
|
---|
| 39 |
|
---|
| 40 | <para>Continue with compiling the package:</para>
|
---|
| 41 |
|
---|
| 42 | <para><screen><userinput>make</userinput></screen></para>
|
---|
[3b3e965d] | 43 |
|
---|
[4a7a683] | 44 | <para><screen><userinput>make check</userinput></screen></para>
|
---|
| 45 |
|
---|
[fd296c1] | 46 | <para>Finish installing the package:</para>
|
---|
[9602db22] | 47 |
|
---|
[fd296c1] | 48 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[9602db22] | 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|