GFortran error: ld: library not found for -lSystem when trying to compile

后端 未结 2 1646
自闭症患者
自闭症患者 2020-12-04 02:58

I am getting a strange error when trying to compile a simple fortran-90 file using gfortran. I am working on a macOS mojave system. I have gfortran 8.2.0 installed and I che

相关标签:
2条回答
  • 2020-12-04 03:16

    Update: I tried what was suggested and installed the gfortran build from the gcc package using homebrew which gave me a newer version of gfortran and my problem was fixed!

    0 讨论(0)
  • 2020-12-04 03:24

    I had the same problem, but installing gfortran build from the gcc package using homebrew did not help. Instead, I installed the whole gcc using homebrew:

    brew install gcc

    and that solved the problem.

    0 讨论(0)
提交回复
热议问题