macOS Monterey installation issue

I need assistance on installing AFNI on my M1 Macbook. Could someone please tell me how to do it step-by-step? I have tried many times using the instructions given on the installation page.
Here is my output:

missing program: afni

  • failure under initial "AFNI and related program tests"
  • AFNI programs show FAILURE
  • missing program: Xvfb
  • missing R packages (see rPkgsInstall)
  • need maptplotlib version 2.2+ for APQC
  • please run: "suma -update_env" for .sumarc
  • please run: apsearch -update_all_afni_help
  • insufficient data for AFNI bootcamp
    (see "Prepare for Bootcamp" on install pages)
  • possibly missing atlases
  • strange XQuartz version:

What is wrong?
Is there anything I have to do before installing AFNI?

Howdy-

Just to doublecheck first, is this the set of setup instructions you are following:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_macOS_12_Silicon.html#quick-setup-general-users
? And do you have administrative/sudo privileges on your computer?

From looking at missing Xvfb and Xquartz, I guess the first script did not finish successfully.

The "insufficient data for AFNI bootcamp" message is primarily relevant if you are about to attend an upcoming Bootcamp (which is possible nowadays).

Also, I think it would help if you could please copy+paste the full output of afni_system_check.py -check_all, not just the end.

thanks,
pt

Firstly thank you for making your time.

Yes, I followed the instructions given in this link.
I do not know if I have got administrative/sudo privileges. How can I learn this? On the steps that required Sudo password I typed my computer password and they all seemed processing.

Again and again thank you,
Elif

As a test of having sudo/admin privileges, if you type:

sudo ls

... the terminal will ask/prompt you for your sudo/admin password. If you do have it, then you will see the contents of the current directly listed out; if you don't, then your terminal will tell you it isn't the right password a couple times.

--pt

I tried something and now my current output is like this:

AFNI programs show FAILURE

  • missing program: Xvfb
  • missing R packages (see rPkgsInstall)
  • need maptplotlib version 2.2+ for APQC
  • please run: "suma -update_env" for .sumarc
  • please run: apsearch -update_all_afni_help
  • dot file test : want 1 modifications across 2 files:
  • strange XQuartz version:

At this point, what should I do?