gcc selecting does not update gfortran

Ryan Schmidt ryandesign at macports.org
Thu Apr 26 16:18:24 PDT 2012


On Apr 26, 2012, at 17:58, Victor Eijkhout wrote:

> [albook:~/Current/petsc-course/course20120514/fsolutions] %% port select gcc
> Available versions for gcc:
>        gcc42
>        llvm-gcc42
>        mp-gcc46 (active)
>        mp-gcc48
>        none
> [albook:~/Current/petsc-course/course20120514/fsolutions] %% sudo port select --set gcc mp-gcc46
> Selecting 'mp-gcc46' for 'gcc' succeeded. 'mp-gcc46' is now active.
> [albook:~/Current/petsc-course/course20120514/fsolutions] %% gfortran --version
> GNU Fortran (GCC) 4.8.0 20120415 (experimental)
> Copyright (C) 2012 Free Software Foundation, Inc.
> 
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> 
> [albook:~/Current/petsc-course/course20120514/fsolutions] %% which gfortran 
> /opt/local/bin/gfortran


It works for me switching between gcc46 and gcc47. I don't have gcc48 installed. gcc48 may be special because it does not install java or fortran by default, and those two cannot be installed simultaneously; this may be related to:

https://trac.macports.org/ticket/33561

Does "sudo port select --set gcc none" properly delete the gfortran and other links? If not, delete them manually. Then you should be able to select the desired version.





More information about the macports-users mailing list