Step 0

Figure out your OS system is crucial.

you can do that with terminal command uname -m

For the installation of AFNI, I followed the afni official documentation.

https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/main_toc.html

My laptop is a (64ARM) Apple Silicon (ARM-based) Mac, so i follow the guide for macOS 12+ Apple Silicon:

https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_macOS_12_Silicon.html

Step 1

basically in my home directory, open a terminal:

cd
curl -O [<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_a_admin_pt1.zsh>](<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_a_admin_pt1.zsh>)
curl -O [<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_a_admin_pt2.zsh>](<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_a_admin_pt2.zsh>)
curl -O [<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_b_user.tcsh>](<https://raw.githubusercontent.com/afni/afni/master/src/other_builds/OS_notes.macos_12_ARM_b_user.tcsh>)

this step is super quick

Step 2

and then, run the first admin-level install script

zsh OS_notes.macos_12_ARM_a_admin_pt1.zsh

this step takes long, it will also install homebew for you. I actually have homebrew already, but i think it downloaded a updated version. now my setup is Homebrew 4.3.6

this step also takes 2 inputs of the Admin password

Step 3

and then, a quick step