- HOW TO SELECT PACKAGES CYGWIN INSTALLATION INSTALL
- HOW TO SELECT PACKAGES CYGWIN INSTALLATION ARCHIVE
- HOW TO SELECT PACKAGES CYGWIN INSTALLATION FULL
# Depending on system, LIBRARY_PATH shall not be set -Įxport PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS Viewing settings (paste all the lines - works in either shell):Įcho LD_LIBRARY_PATH=$ \ Otherwise the scripts will try to run Windows sort.exe instead of the Unix command with the same name.
HOW TO SELECT PACKAGES CYGWIN INSTALLATION ARCHIVE
the main archive will contain everything you need.
HOW TO SELECT PACKAGES CYGWIN INSTALLATION FULL
Go to, select a working mirror, browse to the gcc folder and the version numbered subfolder, and download the full GCC tarball for that version (e.g., gcc-4.6.0.tar.bz2) You will see MANY things in a given GCC version's folder.MPC is a library for arbitrary precision complex number arithmetic and is required for GCC. Go to and download the source (e.g., mpc-0.9.tar.gz).MPFR is a library for arbitrary precision floating-number arithmetic which produces exactly same results for any CPU or operating systems.
Go to and download the source (e.g., mpfr-3.0.1.tar.bz2).The version from Cygwin is older and will not work. It is required for MFPR and thus for GCC. GMP is a library for arbitrary precision arithmetic. Go to and download the source (e.g., gmp-5.0.2.tar.bz2).This is where you'll extract and work with each GCC-related package, including GCC itself. You can check package version numbers and statuses with the cygcheck command:īash binutils bzip2 cygwin gcc-core gcc-g++ gcc-java gzip m4 make unzip zipĪn example of the ' Cygwin Package Information output:įirst, create a workspace directory to build in (e.g., mkdir /usr/local/contrib).
HOW TO SELECT PACKAGES CYGWIN INSTALLATION INSTALL
gcc-java (needed only if you want to install Java only jar command is needed found in the Devel section).zip and unzip (needed only if you want to install Java found in the Archive section).make (version 3.79.1 or later found in the Devel section).
gcc-ada (needed only if you want to install Ada compilier any version found in the Devel section).gcc-g++ (needed only if you want to install c++ compilier found in the Devel section).gcc-core (or any other C compilier found in the Devel section).bzip2 (version 1.0.2 or later found in the Utils section).gzip (version 1.2.4 or later found in the Base section).If something is missing or outdated, download it using the setup.exe utility from the Cygwin site ( ): (The new GCC will be installed under /usr/local/bin you'll still have the old GCC under /usr/bin or /bin).Ĭheck that you have following packages under Cygwin. This process was tested using the versions of Cygwin and the prerequisite packages listed below.Īfter you install GCC >= 4.3, some things like exception handling or shared code may not work (read more here), so install at your own risk. This how-to is provided without any guarantees whatsoever. 8 Build and Install GCC's Prerequisites.7 A Special Note about Logging Your Build.