Skip to content

Check if gcc version is already installed on MacOS #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rikardn
Copy link

@rikardn rikardn commented May 8, 2025

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

@rikardn
Copy link
Author

rikardn commented May 8, 2025

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
Copy link
Author

rikardn commented May 8, 2025

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