This means that the link with the highest priority will become the default.
Ubuntu does not typically release new toolchains for their stable versions, instead newer toolchains are made available in a PPA (Personal Package Archive) “https://launchpad.net/~ubuntu-toolchain-r/ archive/test“ to use the repository we can use the $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g g /usr/bin/g -4.7 $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g g /usr/bin/g -4.6 As a default when we install new alternatives they are added to a group (in this case gcc) in automatic mode.
I let it the first time, and halfway through, the whole OS crashed, and would not boot again.
This was a clean install of 13.2, fully updated, and rebooted for good measure.
You can compare your test results with those found at
The Cygwin 1.7.x devel area offers an older version of GCC (3.4.4-999), which is outdated for many purposes.
So I thought, I would try Tumbleweed, in hopes that its default toolchain had been updated already, or at least a solution to the dependency issues I had while installing 4.9 on 13.2.
Unfortunately it wants to remove the same packages.
("Software Co Llections") tool is provided to make use of the tool versions from the Developer Toolset easy while minimising the potential for confusion with the regular RHEL tools.I installed open SUSE 13.2 and was surprised to find that it ships with a more dated c toolchain (not sure if its an issue with the compiler, or the standard library) than distributions that I was using previously (so certain features I relied on, and have been using for awhile, are missing).Trying to find a solution, I noticed that the repo's also contain gcc 4.9, however when I try to install it, it wants to uninstall quite a few other packages.In the case above we gave $ sudo update-alternatives --config gcc There are 2 choices for the alternative gcc (providing /usr/bin/gcc).Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/gcc-4.7 60 auto mode 1 /usr/bin/gcc-4.6 40 manual mode 2 /usr/bin/gcc-4.7 60 manual mode Press enter to keep the current choice[*], or type selection number: 0gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc.Red Hat provides support to Red Hat Developer Tool Set for all Red Hat customers with an active Red Hat Enterprise Linux Developer subscription.You will need an active Red Hat Enterprise Linux Developer subscription to gain access to Red Hat Developer Tool set.This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.(GCC 4.5.3-4 is also offered in the gcc4 package, but the Cygwin 1.7.x devel area does not offer GCC 4.6 or later).This article describes how to upgrade your Cygwin GCC installation to a more recent version (e.g., 4.6.1).