Is it possible to get a downgraded version of gfortran?

  • Thread starter Thread starter CAF123
  • Start date Start date
  • Tags Tags
    Gfortran
Click For Summary
SUMMARY

Downgrading gfortran on MacOS Big Sur from version 10.2.0 to 9.1.0 is feasible but requires specific steps. Users have reported unsuccessful attempts using Homebrew commands such as "brew install gfortran@9.1.0" and "brew search gfortran". Alternative methods include checking the GCC binaries on the official GCC website or using Fink, although the latter may be currently unavailable. Compiling gfortran from source or utilizing a Linux virtual machine are also viable options for accessing older versions.

PREREQUISITES
  • Familiarity with MacOS Big Sur operating system
  • Basic understanding of Homebrew package manager
  • Knowledge of compiling software from source
  • Experience with virtual machines
NEXT STEPS
  • Research how to compile gfortran from source on MacOS
  • Explore the GCC binaries available at https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
  • Investigate using Fink for package management on MacOS
  • Learn about setting up a Linux virtual machine for software compatibility
USEFUL FOR

Developers working with Fortran, software engineers needing specific compiler versions, and anyone troubleshooting compatibility issues with gfortran on MacOS.

CAF123
Gold Member
Messages
2,918
Reaction score
87
Is it still possible to somehow get a downgraded version of gfortran? Currently I have version 10.2.0 but this leads to some incompatibility in the compilation of some fortran code in a package I wish to install. As I am on a new machine, it is probably ok for me to uninstall gfortran without too much problems elsewhere but I couldn't see how I might then get a downgraded version of gfortran. I am looking for gfortran version 9.1.0 and I am on a MacOs Big Sur operating system.

I have tried brew install gfortran@9.1.0 and brew search gfortran but neither give useful results.

Thanks!
 
Computer science news on Phys.org
Have you tried the links at https://gcc.gnu.org/wiki/GFortranBinaries#MacOS? Fink looks the most promising but the site is not responding at the moment, GitHub obviously works but may not have the version you want. Otherwise you may need to compile from source, or could look at installing a Linux virtual machine which will give you access to all the GCC releases.
 
Sometimes, this can become a rabbit hole where you start downgrading one app and then another until you get lost in the mire.

Is there no way to find why the code doesn't install or compile and fix it at that point? It would seem that someone has run into this before and possibly has a fix available online.
 
  • Like
Likes   Reactions: pbuk

Similar threads

  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
15K
  • · Replies 1 ·
Replies
1
Views
2K