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+. Root privilege is required.

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

  • For OS X >= 10.11,

    1. Copy+paste:

      xcode-select --install
    2. Click on “Quick Download” DMG here and install:
  • For OS X 10.9 and 10.10:

    xcode-select --install

Install R

  1. Click here to download a recent (but not the most recent) version of R:
  2. Install specific R packages for AFNI (specified in the given script):

    curl -LO https://afni.nimh.nih.gov/pub/dist/bin/macos_10.12_local/@afni_R_package_install
    tcsh @afni_R_package_install -afni

Install Netpbm

Using bash shell syntax:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install netpbm

Check shell

Most AFNI scripts are written in tcsh, and most command line examples presented also use tcsh syntax. While not necessary, it might make sense to have this the be the default shell for a user. If you would like to do so, this can be done by clicking through the following: “System Preferences” -> “Users & Groups” -> click on lock and enter password -> right click on the username and go to “Advanced options” -> go down to where shell is and enter desired one.