Installation issues on Mac mini with M2 chip

Hi afni experts,

I tried to install on a new Mac mini with M2 chip. I run into errors when running the commend "tcsh OS_notes.macos_12_ARM_b_user.tcsh". I run into error at here:

build_afni.py -build_root /Users/li.14492/afni_build -package macos_13_ARM_clang

-- current AFNI: AFNI_24.1.03, anyos_text, Apr 18 2024
-- cleaning old build root dir, /Users/li.14492/afni_build
-- preparing build_root dir, /Users/li.14492/afni_build
-- have default git tag LAST_TAG, will checkout AFNI_24.1.03
-- checking out git tag AFNI_24.1.03
-- using repo branch (detached), tag AFNI_24.1.03
-- removing old atlas dir, prev/afni_atlases_dist
-- moving old atlas dir afni_atlases_dist to prev/afni_atlases_dist
-- downloading AFNI atlas package, afni_atlases_dist.tgz
-- unpacking atlas package, afni_atlases_dist
-- removing old NiiVue backup, prev/niivue_afni.umd.js
-- moving old niivue niivue_afni.umd.js to prev/niivue_afni.umd.js
-- downloading NiiVue, niivue_afni.umd.js

-- preparing to run 'make' build of package macos_13_ARM_clang
-- copying README files
-- copying other_builds/Makefile.macos_13_ARM_clang to Makefile
-- building make target 'itall'

-- consider monitoring the build in a separate window with:
       cd /Users/li.14492/Documents
       tail -f /Users/li.14492/afni_build/build_src/log_make.txt
       # use ctrl-c to terminate 'tail' command (not the build)
++ building (please be patient)...
** error: failed run_cmd: make AFNI_WHOMADEIT=build itall >& log_make.txt
-- status: building FAILURE
   see 'make' log file /Users/li.14492/afni_build/build_src/log_make.txt
** error: tail from log_make.txt:
   --------------------------------------------------
   |                         ~~~~~~^~~
   /bin/rm -f pbar_color_defs.o
   /opt/homebrew/bin/gcc-13 -arch arm64 -DDARWIN -DARM_M1 -O1 -m64 -Wall -Wno-deprecated-declarations -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -DDONT_USE_MCW_MALLOC  -c pbar_color_defs.c -I. -I/opt/homebrew/include -I/opt/X11/include -I/usr/include -Icoxplot -Inifti/nifti2 -Inifti/niftilib -Inifti/nifticdf -Inifti/znzlib -I3DEdge/src -Irickr -Ileej3 -DHAVE_ZLIB -DHAVE_GIFTI  -If2c
   In file included from afni.h:11,
   from pbar_color_defs.c:1:
   imseq.h:20:10: fatal error: Xm/Xm.h: No such file or directory
   20 | #include <Xm/Xm.h>
   |          ^~~~~~~~~
   compilation terminated.
   make: *** [pbar_color_defs.o] Error 1
   --------------------------------------------------

** warning: in conda environment
   CONDA_SHLVL = 0, CONDA_DEFAULT_ENV = base

-- shell/system command history is in:
      /Users/li.14492/afni_build/hist_commands.txt

++ screen text history is in:
      /Users/li.14492/afni_build/hist_messages.txt

rehash
setenv R_LIBS /Users/li.14492/sw/R-4.3.1
echo export R_LIBS=/Users/li.14492/sw/R-4.3.1
echo export R_LIBS=/Users/li.14492/sw/R-4.3.1
echo setenv R_LIBS /Users/li.14492/sw/R-4.3.1
mkdir -p /Users/li.14492/sw/R-4.3.1
rPkgsInstall -pkgs ALL
tee out.rPkgsInstall.txt

I also run afni_system_check.py -check_all and have the outputs below:

-------------------------------- general ---------------------------------
architecture:         64bit 
cpu type:             arm
system:               Darwin
release:              23.3.0
version:              Darwin Kernel Version 23.3.0: Wed Dec 20 21:33:31 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8112
distribution:         14.3.1
number of CPUs:       8
apparent login shell: zsh
shell RC file:        .zshrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni           :
                     : 
AFNI_version.txt     : AFNI_24.1.03, anyos_text, Apr 18 2024, local
which python         : /opt/anaconda3/bin/python
python version       : 3.11.7
which R              : /usr/local/bin/R
R version            : R version 4.3.1 (aarch64-apple-darwin20)

instances of various programs found in PATH:
    afni    : 0 
    R       : 1   (/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/bin/R)
    python  : 1   (/opt/anaconda3/bin/python3.11)
    python2 : 0 
    python3 : 3 
      /opt/anaconda3/bin/python3.11
      /opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/bin/python3.12
      /usr/bin/python3

** have python3 but not python2

testing ability to start various programs...
    afni                 : FAILURE
        /bin/sh: afni: command not found
    suma                 : FAILURE
        /bin/sh: suma: command not found
    3dSkullStrip         : FAILURE
        /bin/sh: 3dSkullStrip: command not found
    3dAllineate          : FAILURE
        /bin/sh: 3dAllineate: command not found
    3dRSFC               : FAILURE
        /bin/sh: 3dRSFC: command not found
    SurfMesh             : FAILURE
        /bin/sh: SurfMesh: command not found
    3dClustSim           : FAILURE
        /bin/sh: 3dClustSim: command not found
    uber_subject.py      : success
    3dMVM                : FAILURE
        setenv: Too many arguments.

------------------------ dependent program tests -------------------------
checking for dependent programs...

which tcsh           : /bin/tcsh
which Xvfb           : /opt/X11/bin/Xvfb

checking for R packages...
    rPkgsInstall -pkgs ALL -check : FAILURE
        setenv: Too many arguments.

R RHOME : /Library/Frameworks/R.framework/Resources

------------------------------ python libs -------------------------------

++ module loaded: matplotlib.pyplot
   module file : /opt/anaconda3/lib/python3.11/site-packages/matplotlib/pyplot.py
   matplotlib version : 3.8.0

++ module loaded: flask
   module file : /opt/anaconda3/lib/python3.11/site-packages/flask/__init__.py
   flask version : 2.2.5

** failed to load module flask_cors
-- flask_cors is not required, but is desirable

-------------------------------- env vars --------------------------------
PATH                       = /opt/anaconda3/bin:/opt/anaconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/Privileges.app/Contents/Resources:/usr/local/laps:/Users/li.14492/abin

PYTHONPATH                 = 
R_LIBS                     = /Users/li.14492/sw/R-4.3.1
LD_LIBRARY_PATH            = 
DYLD_LIBRARY_PATH (sub-shell) = :/opt/X11/lib/flat_namespace
DYLD_FALLBACK_LIBRARY_PATH (sub-shell) = 
CONDA_SHLVL                = 1
CONDA_DEFAULT_ENV          = base

----------------------------- eval dot files -----------------------------

----------- AFNI $HOME files -----------

    .afnirc                   : found
    .sumarc                   : missing
    .afni/help/all_progs.COMP : missing

--------- shell startup files ----------

   -- good: .cshrc seems to contain 'source .tcshrc'
   -- considered operations: path, apsearch
   
   -- note: followers should not need edits, so edit flags should be 0
      (have 1 follower(s), which can be ignored)
   
   no modifications needed across 3 dot files
   
------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas    : did not find TT_N27+tlrc

------------------------------ OS specific -------------------------------
XQuartz version      : 2.8.5

which brew           : /opt/homebrew/bin/brew
brew version         : Homebrew 4.2.19


=========================  summary, please fix:  =========================
*  just be aware: login shell 'zsh', but our code examples use 'tcsh'
*  missing program: afni
*  failure under initial "AFNI and related program tests"
*  AFNI programs show FAILURE
*  missing R packages (see rPkgsInstall)
*  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
*  consider installing gcc under homebrew
*  consider installing glib under homebrew

Not sure why it says "consider installing gcc under homebrew" and "consider installing glib under homebrew". I already have them installed with homebrew.

It will be extremely helpful if you can give any advice. Thanks.

I have made some progress and moved the installation forward by a bit, but still fail at installing afni. The current error messages are at below. Will share the entire log files if needed :

build_afni.py -build_root /Users/li.14492/afni_build -package macos_13_ARM_clang

-- current AFNI: AFNI_24.1.03, anyos_text, Apr 18 2024
-- cleaning old build root dir, /Users/li.14492/afni_build
-- backing up dir build_src
-- preparing build_root dir, /Users/li.14492/afni_build
-- have default git tag LAST_TAG, will checkout AFNI_24.1.03
-- checking out git tag AFNI_24.1.03
-- using repo branch (detached), tag AFNI_24.1.03
-- removing old atlas dir, prev/afni_atlases_dist
-- moving old atlas dir afni_atlases_dist to prev/afni_atlases_dist
-- downloading AFNI atlas package, afni_atlases_dist.tgz
-- unpacking atlas package, afni_atlases_dist
-- removing old NiiVue backup, prev/niivue_afni.umd.js
-- moving old niivue niivue_afni.umd.js to prev/niivue_afni.umd.js
-- downloading NiiVue, niivue_afni.umd.js

-- preparing to run 'make' build of package macos_13_ARM_clang
-- copying README files
-- copying other_builds/Makefile.macos_13_ARM_clang to Makefile
-- building make target 'itall'

-- consider monitoring the build in a separate window with:
       cd /Users/li.14492/Documents
       tail -f /Users/li.14492/afni_build/build_src/log_make.txt
       # use ctrl-c to terminate 'tail' command (not the build)
++ building (please be patient)...
** error: failed run_cmd: make AFNI_WHOMADEIT=build itall >& log_make.txt
-- status: building FAILURE
   see 'make' log file /Users/li.14492/afni_build/build_src/log_make.txt
** error: tail from log_make.txt:
   --------------------------------------------------
   >> prog_list.txt
   echo "" >> prog_list.txt
   cat prog_list_bin.txt prog_list_scripts.txt           \
   | tr ' ' '\n' | LC_COLLATE=C sort | uniq \
   >> prog_list.txt
   /bin/cp -f scripts_install/* macos_13_ARM_clang
   /bin/cp -f text_install/* macos_13_ARM_clang
   /bin/mv -f afni to3d from3d 3dclust nsize 3dinfo 3dmerge count sfim tfim imrotate imreg imstat 3dnvals fim2 imand immask imdump imaver 3dhistog 3daxialize cdf 2swap 4swap 3dANOVA 3dANOVA2 3dANOVA3 plugout_tta waver 3dnewid 3dcalc ccalc imcalc 1dmatcalc 3drefit 3dbucket 3dNLfim 3dTSgen plugout_tt plugout_ijk 3dMannWhitney 3dWilcoxon 3dKruskalWallis 3dFriedman 3dRegAna 2dImReg 3dmaskave byteorder imstack 3dDeconvolve 3dTcat 3drotate 3dvolreg 3dpc 3dfractionize 1dplot adwarp imupsam 3dIntracranial 24swap 3dTsmooth RSFgen float_scan 1dtranspose 3dNotes 3dROIstats 1deval 3dStatClust 3dTstat 3dmaskdump 3dTshift 3dDetrend 1dfft 1dcat 3drename 1dnorm afni_vcheck 3ddot 3dfim+ imcutup imcat 3dWinsor 3dZeropad 3dTagalign 3dMean 3dAttribute cat_matvec 3dOverlap 3dClipLevel 3dZregrid 3dEntropy 3ddelay 3dRowFillin 1dgrayplot 3dToutcount 1dsum 3dExtrema qhull strblast 3dConvolve 3dZcutup 3dZcat 3dTqual 3dGetrow 3dTcorrelate 3dcopy Vecwarp 3dCM fdrval 3dAFNItoANALYZE 3dAFNItoNIFTI 3dAutoTcorrelate 3dFDR rtfeedme 3dAutomask 3dBrickStat 3dThreetoRGB 3dresample 3dAutobox 3dLRflip dicom_hdr 3dDespike dicom_to_raw file_tool rotcom 1ddot 1dsvd 2dcat 3dAnhist 3dAFNIto3D 3dWarp nicat 3dSpatNorm fftest serial_helper 3dDTeig 3dDWItoDT 3dWarpDrive nifti_tool 3dAllineate whereami plugout_drive 3dLSS 3dMedianFilter 3dretroicor 3dAFNItoNIML 3dAFNItoRaw im2niml 3dedge3 DTIStudioFibertoSegments Dimon 3dLocalstat 3danisosmooth 3dmaxima GLTsymtest 3dPval stimband 1dNLfit 1dApar2mat 3dTwotoComplex 3dInvFMRI 3dmatcalc 3dAcost 3dLocalBistat 3dFWHMx 3dBlurToFWHM 1dSEM 3dDFT 3dSynthesize 1dMarry 3dEmpty 3dsvm 1dFlagMotion 3dTsort 1dTsort 3dTfitter afni_history 1dUpsample 3dLocalSVD  niml_feedme  3dErrtsCormat 3dUndump 3dREMLfit 3dTnorm 3dUpsample 3dTcorrMap 3dmatmult 3dABoverlap 3dmaskSVD 1dBandpass 3dCompareAffine 3dBallMatch 3dmaxdisp 3dBlurInMask 3dRank 3dFFT 1dgenARMA11 3dPeriodogram 1dAstrip 3dLocalPV 3dBandpass 3dSetupGroupInCorr 3dGroupInCorr 3dTcorr1D 3dClustSim 3dRetinoPhase 3dMaskToASCII 3dttest++ 3dDTtoDWI niccc rbox qdelaunay 3dkmeans 3dXYZcat 3dPolyfit 3dNwarpApply 1dCorrelate 3dNwarpCalc dicom_hinfo apsearch 1dBport 3dNormalityTest 3dmask_tool FIRdesign help_format 2perm 3dClustCount column_cat 3dUnifize 3dNwarpCat 3dQwarp 3dLocalHistog 3dNwarpAdjust 3dNwarpFuncs 3dTproject afni_open 3dConformist 3dNwarpXYZ 3dTRfix 3dToyProg 3dRankizer nifti1_tool gifti_tool cifti_tool images_equal uniq_images tokens 3dLocalACF 3dXClustSim 3dtoXdataset 3dMultiThresh 3dLFCD 3dDegreeCentrality 3dECM 3dMSE 3dsvm_linpredict 3dTfilter 3dTsplit4D 3dSharpen  3dDepthMap 3dExtractGroupInCorr dcm2niix_afni 3dTto1D 3dBrainSync 3dGrayplot 1dsound afni_check_omp 3dPVmap 3dExchange 3dEdu_01_scale 3dDiff get_afni_model_PRF get_afni_model_PRF_6 get_afni_model_PRF_6_BAD 3dedgedog p2dsetstat dsetstat2p cjpeg djpeg whirlgif myget rmz aiv mycat quotize  macos_13_ARM_clang
   mv: rename 3dkmeans to macos_13_ARM_clang/3dkmeans: No such file or directory
   make: *** [install] Error 1
   --------------------------------------------------

** warning: in conda environment
   CONDA_SHLVL = 0, CONDA_DEFAULT_ENV = base

-- shell/system command history is in:
      /Users/li.14492/afni_build/hist_commands.txt

++ screen text history is in:
      /Users/li.14492/afni_build/hist_messages.txt

rehash
setenv R_LIBS /Users/li.14492/sw/R-4.3.1
echo export R_LIBS=/Users/li.14492/sw/R-4.3.1
echo export R_LIBS=/Users/li.14492/sw/R-4.3.1
echo setenv R_LIBS /Users/li.14492/sw/R-4.3.1
mkdir -p /Users/li.14492/sw/R-4.3.1
rPkgsInstall -pkgs ALL
tee out.rPkgsInstall.txt
setenv: Too many arguments.

Any advice is highly appreciated. Thanks!

Hi Shin,

That is a nice improvement. Do you know what you changed to get there? Was is basically getting out of conda?

Anyway, if you mail me the afni_build/build_src/log_make.txt file, I will take a look. I will send you a private message with an email address.

Thanks,

  • rick

Hi rickr,

I end up installing afni successfully. There are several rounds of error messages / debugs, and they are solved by installing these packages by homebrew: openmotif, libomp and gsl.

The only glitch now is that when I use afni commend in the terminal to open the afni GUI, it shows an error saying

Initializing: X11Error: Can't open display: :0.0.

This can not be solved by setting different display variables in the startup script. I found that for me to open afni GUI, I have to manually open XQuartz first, and then run the afni commend. I didn't have to in the other of my older Mac.

You might want to reboot once, and see if that behavior continues. Sometimes a /tmp/.x11... file needs to be created, but that usually happens when running the afni GUI.

Can you try a reboot, just this one time (and after any XQuartz upgrade/install)?
Then let us know if it persists.

Thanks,

  • rick

Hi rick,

(1) I reboot the Mac, and also made sure that the XQuartz is updated. The issue persist. I can open afni GUI only if I first open XQuartz myself; otherwise, I am not able to open the GUI, with an error message "Initializing: X11Error: Can't open display: :0.0."

(2) I also run into error when trying to open SUMA GUI. I am not able to open suma GUI even if already opened XQuartz. I received error message

suma: 
     No input specified, loading some toy surfaces...
     Use '.' and ',' to cycle between them.
     See suma -help for assistance.

trying lame single buffer visual
++     Notice SUMA_XtWarn_handler (SUMA_display.c:4152 @15:04:30):
  X11 Warning 1:trying lame single buffer visual
  Have 1 X11 warnings so far, see Help-->Message Log if curious.
  This notice is shown once for each additional 10 warnings.

Error: no good visual

My current folder doesn't have any surface files. However, in the other of my old Mac, suma gui will still open with a toy surface, but now the GUI does not open at all.

Thanks.

We had a similar post recently, but it was for using suma remotely. Is that the case here?

Hi dglen,

No it's not remote.

This is odd. What is the output from these commands?

ls -ld /tmp/.X11-unix
otool -L ~/abin/afni

Thanks,

  • rick

The outputs:

drwxrwxrwt  2 root  wheel  64 Apr 26 14:30 /tmp/.X11-unix
% otool -L ~/abin/afni
/Users/li.14492/abin/afni:
	/opt/homebrew/opt/openmotif/lib/libXm.4.dylib (compatibility version 5.0.0, current version 5.4.0)
	/opt/homebrew/opt/libxt/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/homebrew/opt/libxft/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.8.0)
	/opt/homebrew/opt/fontconfig/lib/libfontconfig.1.dylib (compatibility version 14.0.0, current version 14.1.0)
	/opt/homebrew/opt/libpng/lib/libpng16.16.dylib (compatibility version 60.0.0, current version 60.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/homebrew/opt/libxmu/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/opt/homebrew/opt/libxp/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)
	/opt/homebrew/opt/libxext/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/homebrew/opt/libx11/lib/libX11.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12)
	/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 8.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)

So if you fully close XQuartz, does /tmp/.X11-unix disappear, and then you cannot start afni again?

If so, what happens if you first do:

sudo mkdir /tmp/.X11-unix

And then try afni? And then close XQuartz, and then try afni again?

  • rick

Hi rick,

I just did some tests. If I fully closed XQuartz, /tmp/.X11-unix exists, but it is an empty folder. In this case, I can't open afni GUI.

bash-3.2$ pwd
/tmp/.X11-unix
bash-3.2$ ls -al
total 0
drwxrwxrwt   2 root  wheel    64 Apr 29 16:00 .
drwxrwxrwt  54 root  wheel  1728 Apr 29 16:00 ..

After I open XQuartz, there is an file 'X0' in this folder, and I can then open afni GUI.

bash-3.2$ pwd
/tmp/.X11-unix
bash-3.2$ ls -al
total 0
drwxrwxrwt   3 root      wheel    96 Apr 29 16:01 .
drwxrwxrwt  55 root      wheel  1760 Apr 29 16:01 ..
srwxrwxrwx   1 li.14492  wheel     0 Apr 29 16:01 X0

To add, I am not able to open suma even after I open XQuartz. I received error messages like this:

bash-3.2$ suma

suma: 
     No input specified, loading some toy surfaces...
     Use '.' and ',' to cycle between them.
     See suma -help for assistance.

trying lame single buffer visual
++     Notice SUMA_XtWarn_handler (SUMA_display.c:4152 @16:02:35):
  X11 Warning 1:trying lame single buffer visual
  Have 1 X11 warnings so far, see Help-->Message Log if curious.
  This notice is shown once for each additional 10 warnings.

Error: no good visual

Those directories and permissions under /tmp/.X11-unix seem right. The problem with suma may or may not be related.

Focusing on suma for a moment, what does 'otool -L' show for it?

Also, just to be sure, would you try running suma after completely deactivating conda? I haven't seen a problem like that, but want to be sure.
Were you in a conda environment when you compiled the AFNI package?

Thanks,

  • rick

regarding suma, if I do 'otool -L' on suma, it shows this:

(base) li.14492@ascpsy-nc304484 analysis_fmri % otool -L /Users/li.14492/abin/suma
/Users/li.14492/abin/suma:
	/opt/homebrew/opt/openmotif/lib/libXm.4.dylib (compatibility version 5.0.0, current version 5.4.0)
	/opt/homebrew/opt/jpeg-turbo/lib/libjpeg.8.dylib (compatibility version 8.0.0, current version 8.3.2)
	/opt/homebrew/opt/libxt/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/homebrew/opt/libxft/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.8.0)
	/opt/homebrew/opt/fontconfig/lib/libfontconfig.1.dylib (compatibility version 14.0.0, current version 14.1.0)
	/opt/homebrew/opt/libpng/lib/libpng16.16.dylib (compatibility version 60.0.0, current version 60.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/homebrew/opt/libxmu/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/opt/homebrew/opt/libxp/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)
	/opt/homebrew/opt/libxext/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/homebrew/opt/libx11/lib/libX11.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12)
	/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 8.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)
	/opt/X11/lib/libGLU.1.dylib (compatibility version 5.0.0, current version 5.1.0)
	/opt/X11/lib/libGL.1.dylib (compatibility version 4.0.0, current version 4.0.0)
	/opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 8001.0.0, current version 8001.0.0)

I'm not under conda environment when compiled the AFNI package. But the python version I current use is the one in conda

(base) % which python
/opt/anaconda3/bin/python