
- GCC FOR MAC CAPITAN INSTALL
- GCC FOR MAC CAPITAN SERIES
gcc7 (from MacPorts) : This will be an up-to-date 64-bit version of gcc, with support for OpenMP. Download the latest installer (MacPorts-2.3.) here. As of August 2, 2017, this will download Version 2.4.1. You’ll particularly need it for getting gcc. GCC FOR MAC CAPITAN INSTALL
MacPorts: This is a package manager for OSX, which will let you easily download, build and install many linux utilities. Please note that this is a 4.41 GB download! (Search for xcode.) As of January 15, 2016, the App Store will install Version 7.2. Download the latest version in the App Store. Evidently, it is required for both Macports and its competitors (e.g., Homebrew). XCode: This includes command line development tools. I highly recommend using the Homebrew version of this tutorial. This tutorial uses Homebrew: a newer package manager that uses pre-compiled binaries to dramatically speed up the process. Note 2: This process is somewhat painful because MacPorts compiles everything from source, rather than using pre-compiled binaries. Alas, this will not support OpenMP for parallelization.
Note 1: OSX / Xcode appears to have gcc out of the box (you can type “gcc” in a Terminal window), but this really just maps back onto Apple’s build of clang. Of course, you can use other compilers and more sophisticated integrated desktop environments, but these instructions will get you a good baseline system with support for 64-bit binaries and OpenMP parallelization. The entire toolchain is free and open source.
In the end result, you’ll have a compiler and key makefile capabilities. These instructions were tested with OSX 10.11 (El Capitan), but they should work on any reasonably recent version of OSX. These instructions should get you up and running with a minimal environment for compiling 64-bit C++ projects with OpenMP (e.g., BioFVM and PhysiCell) using gcc. Windows users should use this guide instead.
GCC FOR MAC CAPITAN SERIES
Note: This is the part of a series of “how-to” blog posts to help new users and developers of BioFVM and PhysiCell. Posted in BioFVM, gcc, MacPorts, OpenMP, OSX, PhysiCell - Janu4 Comments