Failed to install the AFNI software (macOS: The App-based system setup)

The following is the script content of my installation of AFNI software(macOS: The App-based system setup).I hope I can get everyone’s advice. thanks


Last login: Sun Jan 20 11:48:34 on ttys000
kekedeMacBook:~ keke$ bash
bash-3.2$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 60428d4dc Merge pull request #5562 from MikeMcQuaid/max-20-prs
Updated 1 tap (homebrew/core).
==> Updated Formulae
buku                       gnome-recipes              quicktype
geoipupdate                mps-youtube                spdlog
==> Deleted Formulae
apache-arrow                             apache-arrow-glib
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
bash-3.2$ brew install netpbm
Warning: netpbm 10.73.24 is already installed and up-to-date
To reinstall 10.73.24, run `brew reinstall netpbm`
bash-3.2$ exit
exit
kekedeMacBook:~ keke$ curl -O https://afni.nimh.nih.gov/pub/dist/edu/data/CD.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 21 2330M   21  491M    0     0   684k      0  0:58:07  0:12:15  0:45:52  150k
curl: (18) transfer closed with 1928927509 bytes remaining to read
kekedeMacBook:~ keke$ tar xvzf CD.tgz
x CD/
x CD/suma_demo.tgz
x CD/AFNI_data5.tgz: (Empty error message)
tar: Error exit delayed from previous errors.
kekedeMacBook:~ keke$ cd CD
kekedeMacBook:CD keke$ tcsh s2.cp.files . ~
s2.cp.files: No such file or directory.
kekedeMacBook:CD keke$ cd ..afni_system_check.py -check_all
-bash: cd: ..afni_system_check.py: No such file or directory
kekedeMacBook:CD keke$ afni
-bash: afni: command not found
kekedeMacBook:CD keke$ suma
-bash: suma: command not found
kekedeMacBook:CD keke$

Hi,

It looks like your download of CD.tgz failed. But you can
ignore that for now. Please open up a new terminal window
and run:

afni_system_check.py -check_all

If that fails, please change it to:

~/abin/afni_system_check.py -check_all

Thanks,

  • rick