Cygwin Toolset Download and Installation


Download/Install the Cygwin Toolset

Cygwin is a collection of GNU and Open Source tools that provide a Linux-like environment for Windows: using it we can install and use llvm (which includes the GCC compilers), Clang (which includes Clang compilers), GDB (a debugger used by both compilers), and make/cmake (tools that which we use to specify how to build -compile and link- C++ programs). Cygwin and it toolset occupy about 1.7 GB on disk.

In this handout you will download and install the Cygwin toolset; in the next you will download a version of CLion, an Integrated Development Environment (IDE) for using these tools (or you can choose to use these tools via a command-line).

You may want to print these instructions before proceeding, so that you can refer to them while downloading and installing Cygwin and its toolset. Or, just keep this document in your browser. You should read each step completely, before performing the action that it describes.


Cygwin Toolsest

Downloading and Installing

  1. Click Cygwin64

    The following Cygwin home page should appear in your browser.

  2. Click the setup-x86_64.exe link on that page, which downloads that executable file: executing this file will install the 64-bit version of Cygwin.
    On some browswers the following pop-up window will appear on your screen.

    If you see this window, click its Save File button.

    After downloading this file, its icon will appear on your screen as follows.

    Save this file for future use, in case you need to install more Cygwin tools: on my system I stored this file as C:\ZData\Installed Software\setup-x86_64.exe

  3. Double-click the setup-x86_64.exe file.

    When run, the following Open File - Security pop-up window might appear on your screen.

  4. If the window above appears, click the Run button on this window.

    The following User Account Control pop-up window might appear on your screen.

  5. If the window above appears, click the Yes button on this window.

    The following Cygwin Setup pop-up window should appear on your screen.

  6. Click the Next> button on this window.

    The following Cygwin Setup - Choose Installation Type pop-up window should appear on your screen.

    Ensure the Install from Internet radio button is pushed (the default).

  7. Click the Next> button on this window.

    The following Cygwin Setup - Choose Installation Directory pop-up window should appear on your screen.

    For simplicity and consistency, ensure the Root Directory is C:\cygwin64 (the default); the All Users (RECOMMENDED) radio button should be pushed (the default).

  8. Click the Next> button on this window.

    The following Cygwin Setup - Select Local Package Directory pop-up window should appear on your screen.

    This is a temporary directory in which Cygwin will create folders that it downloads files into; it will delete the files/folders here before finishing. For simplicity and consistency, use the default Local Package Directory.

  9. Click the Next> button on this window.

    The following Cygwin Setup - Select Connection Type pop-up window should appear on your screen.

    Ensure the Direct Connection radio button is pushed (the default).

  10. Click the Next> button on this window.

    A progress window might temporarily flash on the screen. The following Cygwin Setup - Choose Download Site(s) pop-up window should appear on your screen.

    There are many sites from which Cygwin can be downloaded. I would leave the top one (http://cygwin.mirror.constant.com) selected (the default).

  11. Click the Next> button on this window.

    The following Cygwin Setup - Select Packages pop-up window should appear on your screen.

    You may want to midimize this window so that it does not fill your screen.

    Notice that the Search textbox is empty. In the steps below you enter tool names and will specify installing Develment for each. At the end of this process, after selecting all packages, you will click the Next> button.

  12. Click the Next> button on this window.

    The following Cygwin Setup - Resolving Dependencies pop-up window should appear on your screen.

  13. Click the Next> button on this window.

    The following Cygwin Setup progress pop-up window should appear on your screen.

    It will cycle through the Downloading, Installing, and Running tasks. Downloading itself might take minutes (depending on your connection speed); Installing and Running can also take minutes. On my machine, with a fast connection speed, the entire process took about 10 minutes; sometimes it will pause for a few seconds (often with 0% progress showing on the window: let it finish).

    Eventually this window will be replaced by the following Cygwin Setup - Installation Status and Create Icons window on your screen.

    I recommend that you leave checked the Create icon on Desktop checkbox, and uncheck the Add icon to Start Menu checkbox. Place the (Cygwing64 Terminal icon) on your desktop in convenient place (especially if you plan to use this Cygwin toolset with a Command Line instead of CLion).

  14. Click the Finish button on this window.

  15. Finally, place C:\cygwin64\bin on the Path, so that the Cygwin toolset is available for use. The following System Properties pop-up window should appear on your screen.

    Something like the following System Properties pop-up window should appear on your screen.

The Cygwin toolset (all the necessary programming tools) are now installed. You are now ready to install the CLion IDE