Astrophysics: MacOS X development tools

To check which compilers you can access at the command line, say:

gcctest -a
gcctest -v -a # version info

.... at the shell prompt. This lists all compilers and utilities it knows about which are available on your current ${PATH}. It understands C and Fortran compilers from GCC (the GNU Compiler Collection), the OpenMPI wrappers, and now also NAG, Xcode Tools, and Make.

Please note: The Intel compilers are no longer made available for Apple systems. If you need those specifically, they're available on Linux systems via the Environment Modules mechanism.

This demonstration should be illuminating, as well as amusing:

which g77
gcctest g77
Activate fake-g77
which g77
gcctest g77

Please see also:

Astrophysics Apple Developers' Page
Libraries
What version is this software?
Where has g77 gone to?
Portable Software

The GNU Compiler Collection

The default Astro system setup includes the following C and Fortran compilers from the GNU Compiler Collection. These can be used directly from the command line without further ado.

  • gcc: Apple's version, distributed with XCode Tools;

  • clang: Apple's alternative C compiler, distributed with XCode Tools;

  • gfortran: HPC's version, to go with the 64-bit Starlink build (we can make HPC's matching gcc available if necessary);

  • g95, via MacPorts;

  • the OpenMPI suite (eg openmpicc, openmpif90, openmpiexec), also via MacPorts.

For the NAG libraries to match gcc (which may or may not be usable with gfortran), please see:

Astrophysics: Libraries

The NAG Fortran Compiler

This, together with the matching NAG library, is now available for installation from the Development category of Self-Service. Please see:

Astrophysics: Libraries

Categories: Apple | Astro software | Astrophysics | Development | Mac | OS X