Introduction to the

Cygwin is a Unix emulation environment running on a Windows platform. It is free software developed by Cygnus Solutions

Cygwin is a Windows software program that emulates the Linux operating system on Windows. In short, Cygwin is a Linux emulation environment that runs on a Windows platform, using a Dll(dynamic Link Library) to do so. We can develop UNIX tools under Cygwin and use this DLL to run under Windows

Download address

1, Cygwin official website 2, MY web disk, extract code: H3q4

The installation

Sygwin isn’t a one-click installation, it’s just a downloader

1. Double-click the installation package





2. Three installation modes

(1) Install from the Internet, this mode directly from the Internet installation, suitable for fast network speed;

②Download Without Installing, this mode only downloads the Cygwin component package from the Internet, but does not install;

You can use this mode to Install Cygwin components from your Local Directory



Let’s take the first option

3. Select an installation path



4. At the same time of downloading, the Cygwin component is also saved locally, so that it can be installed again later. This step is to select the location of the Cygwin component package downloaded from the Internet during the installation process



5. In this step, select the connection mode, select your connection mode, and click Next. The dialog box for selecting the download site will appear, as shown in the picture below



①Use System Proxy Settings Specifies the System Proxy Settings

Most users are connected to the network directly, so use the default Settings

③Use HTTP/FTP Proxy Use HTTP or FTP Proxy. If necessary, select this item and set the corresponding proxy address and port

6. Select a download site

Different deposit mirror the different package, in order to achieve the fastest download speeds, we can add netease open source ali cloud mirror mirror http://mirrors.163.com/cygwin/ or http://mirrors.aliyun.com/cygwin/





7. Start loading



8. Select the component package you want to download and install

At this point, installing Cygwin is all about installing various modules. At the core, remember to install the Devel part of the module, which contains the various tools or modules used for development

A devel



Select Binutils, GCC, Mingw and GDB to install. Find the following options and click skip to change them to the version number

9. Confirm the change and install10. After the installation is complete, create a desktop shortcutVerify that Cygwin is installed successfully

Run cygwin



Enter in the command window that is displayed

cygcheck -c cygwin
Copy the code

The current version and running status of Cygwin is printed. If status is OK, cygwin is running properly

gcc --version
Copy the code

g++ --version
Copy the code