Setting gcc
Ryan Carsten Schmidt
ryandesign at macports.org
Tue Nov 19 06:06:48 UTC 2024
On Nov 18, 2024, at 23:15, David Nicholls wrote:
>
> I'm not sure what's going on. On my new M$ MacBook, after installing Macports ,I installed gcc14 in order to get the Fortran compiler, gfortran
>
> I used:
>
> sudo port install gcc14
>
> and selected it using;
>
> sudo port select --set gcc mp-gcc14
>
> which showed as selected:
>
> sudo port select --list gcc
> Available versions for gcc:
> mp-gcc14 (active)
> none
>
> and
>
> ...$ which gcc
> /opt/local/bin/gcc
>
> ...$ gcc --version
> Apple clang version 16.0.0 (clang-1600.0.26.4)
> Target: arm64-apple-darwin24.1.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> gfortran --version does return the gcc14 version.
>
> Why is the gcc --version for gcc still showing the Apple clang version?
Try closing the terminal and opening a new one.
More information about the macports-users
mailing list