Link

Installing Cygwin

To effectively use CLion, you will need to download some components supplied by Cygwin.

This section will help you download Cygwin to install three specific packages for CLion.


Table of contents

  1. Installing The Cygwin Setup
  2. Running the Cygwin Setup
  3. Selecting Packages
    1. Selecting gcc-g++
    2. Selecting gdb
    3. Selecting make
  4. Downloading the Packages
  5. Conclusion

Installing The Cygwin Setup

First, you will be setting up the directory and download source

  1. Go to Cygwin’s Website

    Depending on your computer, you will want to either download:
    1. 64-bit version
    2. 32-bit version

      noteNOTE: If you are unsure which version to download, refer to the troubleshooting section to help figure out your operating systems version.

      Cygwin Download Page
  2. Run the file you downloaded

    If you get a security warning, it is safe to ignore it and run the program.

    noteNOTE: This was downloaded in a Google Chrome browser. If your browser is different, the file may appear in a different location.

    Cygwin Download Link

Running the Cygwin Setup

  1. Click on Next >

    Cygwin firstPage

  2. Select the Install from Internet download source

    Click on Next >

    Cygwin secondPage

  3. Keep all selected defaults

    Click on Next >

    Cygwin thirdPage

  4. Change the Local Package Directory to C:\cygwin64\downloads

    Click on Next >

    Cygwin fourthPage

    noteNOTE: If an error message pops up, it is safe to create the new directory by clicking Yes

    Cygwin fourthPageAddition

  5. Select Direct Connection

    Click on Next >

    Cygwin FifthPage

  6. Search for the closest Mirror Site

    noteNOTE: A Mirror Site is a website that contains the files that you will need to set up Cygwin. You will be using one of these sites as your download source, so choosing a website that is close to your area will help speed up the process. However, it doesn’t necessarily matter which Mirror Site you choose.

    When your preferred download source is found, select it in the scroll window and proceed to click on Next >

    Cygwin SixthPage

Selecting Packages

These proceeding steps will cover what packages to choose, and how to choose them.

Selecting gcc-g++

  1. Change the drop-down View tab to Category

    Cygwin Package1

  2. Search for gcc-g++ in the Search field

    Cygwin Package1.5

  3. Expand the Devel level in the window

    Cygwin Package2

  4. Search the Devel drop-down list

    The package name must match gcc-g++.

    warningWARNING: The package name must exactly match gcc-g++. This applies to gdb and make in the next steps as well.

    Cygwin Package3

  5. Select the highest numbered non-test number version on the drop-down menu

    Cygwin Package4

  6. Check the Src? check box

    Cygwin Package5

Selecting gdb

noteNOTE: It is safe to clear the search for gcc-g++ as long as you have the Src? box checked for it. This applies to gdb and make as well.

Follow along with the same steps from gcc-g++, searching instead for gdb

Cygwin gdb

Selecting make

Follow along with the same steps from gcc-g++, searching instead for make

Cygwin make

Downloading the Packages

Once you have selected gcc-g++, gdb, and make you can continue

  1. Click on Next >

    Cygwin package download

  2. Click on Next >

    Cygwin package download2

  3. Download the packages

    noteNOTE: This process may take some time depending on how close you are to the mirror site you selected.

    Cygwin package download3

  4. Finalize Cygwin installation

    Now that the packages have finished downloading, you can choose whether or not to add the Cygwin Terminal to your Desktop and/or Start Menu. Clicking on Finish will complete this process

    Cygwin package download4


Conclusion

You have now sucessfully downloaded Cygwin onto your computer. Your next steps are in Creating a CLion Account.