Node:Cygwin, Previous:PC Using, Up:PC Installation



Using gawk In The Cygwin Environment

gawk can be used "out of the box" under Windows if you are using the Cygwin environment.1 This environment provides an excellent simulation of Unix, using the GNU tools, such as bash, the GNU Compiler Collection (GCC), GNU Make, and other GNU tools. Compilation and installation for Cygwin is the same as for a Unix system:

tar -xvpzf gawk-3.1.1.tar.gz
cd gawk-3.1.1
./configure
make

When compared to GNU/Linux on the same system, the configure step on Cygwin takes considerably longer. However, it does finish, and then the make proceeds as usual.

Note: The |& operator and TCP/IP networking (see Using gawk for Network Programming) are fully supported in the Cygwin environment. This is not true for any other environment for MS-DOS or MS-Windows.


Footnotes

  1. http://www.cygwin.com