How to Compile Netcat
- 1). Download the latest version of Netcat from the GNU Netcat homepage (see Resources). Select a download version of type "Sources." Instructions are also provided for using the CVS source code tool to download the latest source code at the GNU Netcat homepage.
- 2). Open a terminal. In Windows, click "Start," type "cmd" and press "Enter." On Mac OS X, press "Cmd" + "Space" and type "Terminal."
- 3). Use the "cd" command to navigate to the directory where your download of the source code is located. For example, type the following if you downloaded netcat-0.7.1 to your downloads directory:
cd Downloads/netcat-0.7.1 - 4). Type the following to "configure" the source code compile:
configure
Depending on your configuration, this may fail. If it does, you may need to type:
./configure - 5). Type the following to compile the program:
make - 6). Type "netcat" to run the program.