Thursday 8 October 2009

Installing Cygwin gcc manually

I've already mentioned the process of installing the Cygwin gcc compiler package directly from the internet in Microsoft Windows OS. But for those who are not able to follow it for some reason, here is a way of installing it manually, and this is a much easier process.
I have uploaded the necessary files required. So just download and install the Cygwin gcc.

The procedure:
  • Download the file from here.
  • Extract the file to any temporary folder.
  • Download the Cygwin setup file from http://www.cygwin.com/setup.exe.
  • Double click on "setup.exe".
  • If confirmation is asked, click "continue" and then click "next".
  • Check the "Install from Local Directory", then "next".
  • In "Root Directory" set the location of the Cygwin gcc installation. Recommended is "C:\Cygwin". Click "next".
  • In the "Local package Directory" set the directory of the folder you extracted. The name of the folder is "http%3a%2f%2fmirror.cs.vt.edu%2fpub%2fcygwin%2fcygwin%2f.7z". This actually is the original folder formed when the Cygwin package is downloaded from the internet.
  • This will automatically install the packages within it.
  • Click "Finish" when installation is complete.
  • You can now update the packages installed to get the latest benifits of the packages.
Setting the path for the compiler:
  • Right click on "My Computer".
  • Select "Properties".
  • The select "Advanced System settings".
  • Click on "Environment variables" at the bottom.
  • Select "Path" and click "Edit".
  • Add "C:\Cygwin\Bin”(or wherever you have located your Cygwin\bin folder) to the PATH variables list.
  • Make sure to separate it from the last path with a ";".
  • Click "Ok" and exit.

Installed packages:
  • The entire base package
  • In the development package:
  • binutils.
  • gcc core.
  • gcc g++.
  • gcc g77.
  • gcc mingw core.
  • gcc mingw g++.
  • gcc mingw g77.
  • gdb.
  • make.
  • mingw runtime.
These are the most important and sufficient packages to compile, run or debug C/C++ programs according to gcc standards.

NOTE:
This installed version of Cygwin gcc compiler can be used along with NetBeans or any other IDEs to compile programs.

Enjoy!

0 comments:

Post a Comment