Having dug around on the internet a lot in the last couple of days, I've found other Fortran compilers, but I've failed to get any to cross-compile universal binaries, or to compile SciPy. I guess this will be the easiest way to get gfortran installed, but port search gfortran comes up with nothing, and I've not had any joy with MacPorts in the past (no offence to MacPorts it's looks like a very active project, but I've been spoilt with Linux package managers, my favourite manager being aptitude) so on Mac OS X I've compiled software and libraries from source code in the past. Anyone tried this on Mountain Lion? MacPorts The G95 project hasn't had an update since 2010, so I didn't try it. They provide instructions and a script for Building a Universal Compiler, but, again, this hasn't been updated for Mountain Lion yet. SciPy's recommended (free) Fortran compiler is the one on CRAN's R server, but this has not been updated for Mountain Lion yet. However, I failed to get this to compile SciPy, and later saw in SciPy's README that it is "known to generate buggy scipy binaries". I've only found a single website that distributes a binary version of gfortran specifically for Mountain Lion: the HPC website. Apple's Native CompilersĪs far as I can tell, the Xcode C / C++ / ObjC compilers use a fork of the GNU compiler collection, with llvm as a backend the latter I figure enables compiling and optimising "universal" binaries, for both Intel and PPC architectures. ![]() ![]() Since Apple have stopped distributing gfortran with Xcode, how should I compile architecture independent Fortran code? I have Mac OS X Mountain Lion (10.8), and XCode 4.4 installed, with the Command Line Tools package installed.
0 Comments
Leave a Reply. |