1) Você pode ter quantas versões gcc, g ++ quiser, instaladas ao mesmo tempo.
2) Diga ao cmake para usar um compilador específico: CC=gcc-4.6 CXX=g++-4.6 cmake ../
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies:
dkms : Depends: gcc but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Esta é a versão do meu gcc:
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1) Você pode ter quantas versões gcc, g ++ quiser, instaladas ao mesmo tempo.
2) Diga ao cmake para usar um compilador específico: CC=gcc-4.6 CXX=g++-4.6 cmake ../