gawk: Quick Installation

1 
1 B.2.1 Compiling 'gawk' for Unix-Like Systems
1 --------------------------------------------
1 
1 The normal installation steps should work on all modern commercial
1 Unix-derived systems, GNU/Linux, BSD-based systems, and the Cygwin
1 environment for MS-Windows.
1 
1    After you have extracted the 'gawk' distribution, 'cd' to
1 'gawk-4.2.1'.  As with most GNU software, you configure 'gawk' for your
1 system by running the 'configure' program.  This program is a Bourne
1 shell script that is generated automatically using GNU Autoconf.  (The
1 Autoconf software is described fully starting with *note(Autoconf,
1 autoconf,Autoconf---Generating Automatic Configuration Scripts)Top::.)
1 
1    To configure 'gawk', simply run 'configure':
1 
1      sh ./configure
1 
1    This produces a 'Makefile' and 'config.h' tailored to your system.
1 The 'config.h' file describes various facts about your system.  You
1 might want to edit the 'Makefile' to change the 'CFLAGS' variable, which
1 controls the command-line options that are passed to the C compiler
1 (such as optimization levels or compiling for debugging).
1 
1    Alternatively, you can add your own values for most 'make' variables
1 on the command line, such as 'CC' and 'CFLAGS', when running
1 'configure':
1 
1      CC=cc CFLAGS=-g sh ./configure
1 
1 See the file 'INSTALL' in the 'gawk' distribution for all the details.
1 
1    After you have run 'configure' and possibly edited the 'Makefile',
1 type:
1 
1      make
1 
1 Shortly thereafter, you should have an executable version of 'gawk'.
1 That's all there is to it!  To verify that 'gawk' is working properly,
1 run 'make check'.  All of the tests should succeed.  If these steps do
1 not work, or if any of the tests fail, check the files in the 'README_d'
1 directory to see if you've found a known problem.  If the failure is not
1 described there, send in a bug report (⇒Bugs).
1 
1    Of course, once you've built 'gawk', it is likely that you will wish
1 to install it.  To do so, you need to run the command 'make install', as
1 a user with the appropriate permissions.  How to do this varies by
1 system, but on many systems you can use the 'sudo' command to do so.
1 The command then becomes 'sudo make install'.  It is likely that you
1 will be asked for your password, and you will have to have been set up
1 previously as a user who is allowed to run the 'sudo' command.
1