1.2.1. Mac OS (admin’ed): the administrator part

What to do?

Here we describe the administrator’s part of the AFNI installation and system setup for administered Mac OS versions 10.9-15.

Root privilege is required for the instruction on this page.

These are accompanied by instructions for regular users, which need to be performed after in order to complete the AFNI setup.

Install Xcode and XQuartz

  1. Copy+paste:

    xcode-select --install

  2. For …

    • … OS X >= 10.11, click on this link:
      Then click on the “Quick Download” DMG, and follow the instructions to install.

    • … OS X 10.9 and 10.10, copy+paste:


    Purpose: These install Xcode command line tools (needed for the gcc compiler et al.) and XQuartz (the desktop manager needed to run X11 programs, such as afni!).

Install R

  1. Purpose: Get R-3.6.3 (a recent, but not the most recent, version of R).

  2. Copy+paste:

    sudo rPkgsInstall -pkgs ALL

    Purpose: Get specific R packages needed for AFNI programs.

Install Netpbm

  1. Copy+paste:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Copy+paste:

    brew install netpbm

Purpose: Install “netpbm”, which has functionality for converting image formats (such as to PNG) and is used in several programs like @snapshot_volreg, @chauffeur_afni and others. Uses the package manager homebrew to do the installation.