Tag Archives: install

How to install Cygwin on Windows

In this tutorial we will install Cygwin on Windows for using gcc/g++ compiler, gdb debugger, and make utility, in order to start building C/C++ programs using Cygwin.

1. Download the Cygwin setup from https://cygwin.com/install.html (choose the 32 bit or 64 bit version, depending on your OS)

2. Run the downloaded Setup File setup-x86.exe (or setup-x86_64.exe) (prefer: Right Click -> Run as Administrator)

3.  Click Next on the First Welcome Screen

4. Select “Install from Internet” -> Click Next

Cyg0

5. Select a “Root Install Dir” (or leave the default dir e.g. C:\cygwin64) -> Click Next

6. Select a “Local Package Dir”, this is where Cygwin Setup will save downloaded files before installation. (e.g. D:\MySotwares\Cygwin)

7. Select appropriate “Internet Connection” in the next screen. If your machine is connected to internet by a proxy server, make sure to select “Internet Explorer Proxy settings” or if you know the proxy settings yourself select “Use HTTP/FTP Proxy Settings” and write down the proxy server settings (e.g. Proxy Host: 172.17.101.12 & Port: 8080). -> Click Next

8. Choose a Donwload Site. Choose any mirror site listed (Just click on it) -> Click Next

9. Next Screen is “Select Packages”,

Cyg1

Click on the + sign left of “Devel” category, it will show a list of packages that can be installed. Select the following packages (by clicking over “Skip” written)

  • gcc-g++: GNU Compiler Collection
  • gdb: The GNU debugger
  • make: The GNU verison of the ‘make’ utility

[ Warning: DO NOT SELECT the  “ALL – Default”, it will install all the packages available for Cygwin. This will take enormous amount of downloading as well as space on your disk ]

Click Next

10. Setup will look for dependencies and show you a list of packages to be installed. -> Click Next

11. When installation is finished, check “Create Icon on Desktop” -> Click Finish

Thats it, you have just installed the gcc, g++, gdb, and ‘make’ utilities, and you are ready to compile and run your first program on Cygwin. Happy Coding!