Skip to content

Check if gcc version is already installed on MacOS - #131

Open
rikardn wants to merge 1 commit into
fortran-lang:mainfrom
rikardn:check_version_on_macos
Open

Check if gcc version is already installed on MacOS#131
rikardn wants to merge 1 commit into
fortran-lang:mainfrom
rikardn:check_version_on_macos

Conversation

@rikardn

@rikardn rikardn commented May 8, 2025

Copy link
Copy Markdown

This should resolve #129. I haven't tested it yet.

@rikardn

rikardn commented May 8, 2025

Copy link
Copy Markdown
Author

This didn't work and I don't fully understand why not. The installed version seems to be 14, but brew then claims to have 12.4.0. Perhaps multiple versions can be installed at the same time.

+++ brew list --versions gcc
+++ cut '-d ' -f2-
+++ cut -d. -f1
++ maj=14
++ '[' 14 == 12 ']'
++ brew install --force gcc@12
Warning: gcc@12 12.4.0 is already installed and up-to-date.
To reinstall 12.4.0, run:
  brew reinstall gcc@12

@rikardn
rikardn force-pushed the check_version_on_macos branch from 313dfd5 to f6a49e3 Compare May 8, 2025 14:20
@rikardn

rikardn commented May 8, 2025

Copy link
Copy Markdown
Author

My next attempt didn't work either. Need to login to the runner to see what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning on MacOS when installing the same version of gfortran as on the runner

1 participant