-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
gfortran: command not found on macos-latest #3371
Comments
Hi @paulmueller! |
The problem is that I intend to install the R package |
I manually added the symlink |
The yaml entry I used:
|
Sorry, I have to reopen. Building the https://github.com/ZELLMECHANIK-DRESDEN/dclab/runs/2568138465?check_suite_focus=true
Do I also have to update a library path or so? I don't know how things work on macOS. |
@paulmueller could you please file another issue and provide all the details there? |
@paulmueller looks like we already had pretty the same issue. Could you take a look here, please? |
Thanks for your help, that worked:
|
@paulmueller Creating a symbolic link for gcc10 not working? I'm asking since you prefer gfortran 10, but link libs from version 9
|
Thanks for that! |
For the new macOS 12 image:
|
Thanks for the solution. It worked for me, until MacOS14 image. jobs:
my_job_name:
...
env:
FC: gfortran
GCC_V: 12
steps:
...
- name: Symlink gfortran (macOS)
if: runner.os == 'macOS'
run: |
# make sure gfortran is available
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
# https://github.com/actions/runner-images/issues/3371
# ln version - new path 'MacOS14'
sudo ln -fs /opt/homebrew/bin/gfortran-${GCC_V} /usr/local/bin/gfortran
sudo mkdir -p /usr/local/gfortran
sudo ln -sf /opt/homebrew/Cellar/gcc@${GCC_V}/*/lib/gcc/${GCC_V} /usr/local/gfortran/lib |
Description
The command "gfortran" is not available in the latest macOS builds. Calling
gfortran --version
fails with the following error on macos-latest:Area for Triage: Apple
Question, Bug, or Feature?: Bug
Virtual environments affected
Image version: 20210503.2
Image version where you are experiencing the issue.
Expected behavior
gfortran --version
should print the version of gfortranActual behavior
command not found
Repro steps
CI job:
https://github.com/ZELLMECHANIK-DRESDEN/dclab/runs/2567423623?check_suite_focus=true
relevant line in yml:
https://github.com/ZELLMECHANIK-DRESDEN/dclab/blob/master/.github/workflows/check.yml#L27
The text was updated successfully, but these errors were encountered: