I want to install a fortran binary from here GCC wiki GFortran binaries, but the binary for Mountain Lion is not yet available. Would the binary for Lion work, or would it be a terrible mistake to install it?
MacOS – Will a Lion Fortran Binary work on Mountain Lion
binarymacos
Related Question
- MacOS – Is ipfw available in Mountain Lion
- MacOS – Does the Programmer’s Dvorak keyboard layout work on Mountain Lion
- MacOS – How to install SVN binary on Mountain Lion
- MacOS – Is it possible to get Safari of Mountain Lion running on Lion
- MacOS – How To Upgrade Snow Leopard to Lion (not Mountain Lion)
- MacOS – “Cannot execute binary file” with alias of binary
- MacOS – Upgrade from Lion to Mountain Lion but not Mavericks
- MacOS – Yosemite – Change default C and fortran compilers
Best Answer
It should run just fine on Mountain Lion, and it should not do any damage to the Mountain Lion machine.
There is only one way to know for sure if it will work - installing it. I didn't want to do this because I am not sure how to test it, but will say that it shouldn't be a terrible mistake to install.
It will either not run (due to various things like Gatekeeper, minor API changes between Lion and Mountain Lion, etc) or not even install. Otherwise, a Mountain Lion specific build either uses new APIs, etc.
Finally, quickly browsing around online it looks like depending on your install there may be an issue
error trying to exec 'f951': execvp: No such file or directory"
. This site offers a fix, which looks like you need to uninstal the current Xcode, remove references to previous compilers like gcc, cpp, gfortran, and then reinstall Xcode, gfortran, and gcc.