Errors with AFNI installation Ubuntu 20.04 LTS

I am trying to install AFNI on Ubuntu 20.04 LTS. I followed all instructions found here. I was getting some warnings/errors throughout, for example with libxm4 (libXm.so.4) not being installed – which that alone seems to lead to major errors (e.g. suma -update_env won’t work, AFNI won’t open, etc.). I have a .txt. file with the output from afni_system_check.py that I can email, but I have also posted it below.

From the summary I am also unsure what “login shell ‘bash’, trusting user to translate code examples from ‘tcsh’” means I need to do (my normal shell is bash, although tcsh is installed). I will also install miniconda 2.7 to fix that requirement. I am unsure on what is wrong with the R installation given I followed all the steps and that seemed to go fine. I cannot run the suma command, but I did run the suggested apsearch command.

Thank you so much for the help!


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Linux
release:              5.4.0-31-generic
version:              #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020
distribution:         debian bullseye/sid 
number of CPUs:       8
apparent login shell: bash
shell RC file:        .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni           : /home/keith/abin/afni
afni version         : afni: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
                     : 
AFNI_version.txt     : AFNI_20.1.13, linux_ubuntu_16_64, Jun 03 2020
which python         : /home/keith/miniconda3/bin/python
python version       : 3.7.6
which R              : /usr/bin/R
R version            : R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
which tcsh           : /usr/bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/home/keith/abin/afni)
    R       : 1   (/usr/bin/R)
    python  : 1   (/home/keith/miniconda3/bin/python3.7)
    python2 : 1   (/usr/bin/python2.7)
    python3 : 2 
      /home/keith/miniconda3/bin/python3.7
      /usr/bin/python3.8


testing ability to start various programs...
    afni                 : FAILURE
        afni: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
    suma                 : FAILURE
        suma: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
    3dSkullStrip         : FAILURE
        3dSkullStrip: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : FAILURE
        3dRSFC: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory
    SurfMesh             : FAILURE
        SurfMesh: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory
    3dClustSim           : success
    3dMVM                : success

checking for R packages...
    rPkgsInstall -pkgs ALL -check : FAILURE
        
        oo Warning: 
           These packages are not installed on the computer: afex!
        These packages are not installed on the computer: phia!
        These packages are not installed on the computer: snow!
        These packages are not installed on the computer: lmerTest!
        These packages are not installed on the computer: paran!
        These packages are not installed on the computer: psych!
        These packages are not installed on the computer: brms!
        These packages are not installed on the computer: corrplot!
        These packages are not installed on the computer: metafor!
        

R RHOME : /usr/lib/R

checking for $HOME files...
    .afnirc                   : found
    .sumarc                   : missing
    .afni/help/all_progs.COMP : missing

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

** failed to load module matplotlib.pyplot
-- matplotlib.pyplot is not required, but is desirable

-------------------------------- env vars --------------------------------
PATH = /home/keith/miniconda3/bin:/home/keith/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/keith/abin

PYTHONPATH = 
R_LIBS = /home/keith/R

LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH = 
DYLD_FALLBACK_LIBRARY_PATH = 

------------------------------ data checks -------------------------------
data dir : found AFNI_data6   under $HOME
           top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos   under $HOME
           top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo    under $HOME
           top history: ...s_New/data/Build_tmp on Mon Mar  4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas    : found TT_N27+tlrc  under /home/keith/abin

------------------------------ OS specific -------------------------------
which apt-get        : /usr/bin/apt-get
apt-get version      : apt 2.0.2ubuntu0.1 (amd64)


=========================  summary, please fix:  =========================
*  login shell 'bash', trusting user to translate code examples from 'tcsh'
*  have python version 3.7.6, some programs need 2.7.x
*  AFNI programs show FAILURE
*  missing R packages (see rPkgsInstall)
*  please run: "suma -update_env" for .sumarc
*  please run: apsearch -update_all_afni_help

OK, I stepped through step 2 again bit by bit and I uncovered some of the issues (although I am still unsure how to fix):

Lines that do not work include:

sudo apt-get install -y xfonts-base python-qt4
sudo apt-get install -y python-matplotlib
sudo apt-get install -y libssl-dev libgfortran3

The rest seem to have worked once I went line by line. suma -update_env is now working. I realize now I need to find a way to install R differently since it looks like the instructions are specific to Ubuntu 18 (will look more into that later today).

There does not appear to be a python-qt4 available? Neither is there a python-matplotlib or libgfortran3.

Thank you!!

Here is the updated output from the system check:


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Linux
release:              5.4.0-31-generic
version:              #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020
distribution:         debian bullseye/sid 
number of CPUs:       8
apparent login shell: bash
shell RC file:        .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni           : /home/keith/abin/afni
afni version         : Precompiled binary linux_ubuntu_16_64: Jun  3 2020 
                     : AFNI_20.1.13 'Otho'
AFNI_version.txt     : AFNI_20.1.13, linux_ubuntu_16_64, Jun 03 2020
which python         : /home/keith/miniconda3/bin/python
python version       : 3.7.6
which R              : /usr/bin/R
R version            : R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
which tcsh           : /usr/bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/home/keith/abin/afni)
    R       : 1   (/usr/bin/R)
    python  : 1   (/home/keith/miniconda3/bin/python3.7)
    python2 : 1   (/usr/bin/python2.7)
    python3 : 2 
      /home/keith/miniconda3/bin/python3.7
      /usr/bin/python3.8


testing ability to start various programs...
    afni                 : success
    suma                 : success
    3dSkullStrip         : success
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : success
    SurfMesh             : success
    3dClustSim           : success
    3dMVM                : success

checking for R packages...
    rPkgsInstall -pkgs ALL -check : FAILURE
        
        oo Warning: 
           These packages are not installed on the computer: afex!
        These packages are not installed on the computer: phia!
        These packages are not installed on the computer: snow!
        These packages are not installed on the computer: lmerTest!
        These packages are not installed on the computer: paran!
        These packages are not installed on the computer: psych!
        These packages are not installed on the computer: brms!
        These packages are not installed on the computer: corrplot!
        These packages are not installed on the computer: metafor!
        

R RHOME : /usr/lib/R

checking for $HOME files...
    .afnirc                   : found
    .sumarc                   : found
    .afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

** failed to load module matplotlib.pyplot
-- matplotlib.pyplot is not required, but is desirable

-------------------------------- env vars --------------------------------
PATH = /home/keith/miniconda3/bin:/home/keith/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/keith/abin:/home/keith/abin

PYTHONPATH = 
R_LIBS = /home/keith/R

LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH = 
DYLD_FALLBACK_LIBRARY_PATH = 

------------------------------ data checks -------------------------------
data dir : found AFNI_data6   under $HOME
           top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos   under $HOME
           top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo    under $HOME
           top history: ...s_New/data/Build_tmp on Mon Mar  4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas    : found TT_N27+tlrc  under /home/keith/abin

------------------------------ OS specific -------------------------------
which apt-get        : /usr/bin/apt-get
apt-get version      : apt 2.0.2ubuntu0.1 (amd64)


=========================  summary, please fix:  =========================
*  login shell 'bash', trusting user to translate code examples from 'tcsh'
*  have python version 3.7.6, some programs need 2.7.x
*  missing R packages (see rPkgsInstall)

Howdy-

We (= me) has been slow to update the AFNI install instructions for Ubuntu 20.04. Thanks for information on this.

I have just taken an old laptop and installed Ubuntu 20.04, and am going through the setup. I will hopefully put up a full doc page by Monday (or so) about this, but some things to note:

A) Re. python-matplotlib (this is separate from the “xfonts-base” part, which is fine in the current documentation):
Ubuntu and its repo will now look for Python 3 specifically (because Python 2 became deprecated in Dec, 2019). If you search for matplotlib in the aptitude repo:


apt-cache search matplotlib

… it won’t have “python-matplotlib” anymore (which was python 2’s matplotlib module), but instead it will have “python3-matplotlib”
All this is to say, you can run:


sudo apt-get install -y python3-matplotlib

and that will get you Python 3 + matplotlib; and I think numpy will also be there as well, it appears, which might soon become an AFNI depedency.

Also, even more preferably for managing Python, I have gotten to like Conda/Miniconda, and find it pretty convenient overall to manage various python setups and install packages. We have instructions for this now on the AFNI webpages-- it’s optional, but might be useful:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/miniconda.html

B) Re. python-qt4
I believe this is also Python 2.* specific; I don’t think you need to worry about this one, and can ignore (we don’t really use the qt-based GUIs in AFNI at the moment for anything). There are Python 3 equivalents that one day we might use, but that isn’t an immediate thing.

C) Re. lib-gfortran3 (here also, “libssl-dev” is a separate consideration, and one that appears to be correct in the install):
Chris Rorden has kindly done some of our homework for us, and noted this point here:
https://github.com/afni/afni/issues/166
… so you should be able to do this instead:


sudo apt install libgfortran-8-dev libgomp1

D) Re. R:
Maybe having lib-gfortran-8-dev will help this-- I still have to investigate.

thanks,
pt

For the record, uber_subject.py works for my in fedora, using pyqt4 under their default python 3.7. Though it seems like it is not available in ubuntu 20.04.

  • rick

Thank you that was helpful, I am closer. I still have a few issues.

First, what I have done since my last post:
(1) I ran the lines you stated.
(2) I installed Miniconda for python 2.7 (I already had for python3 installed). I have confirmed that both python3 and python2 work, although it seems like python3 is the default if I just type “python” into my terminal.
(3) I installed R for ubuntu 20.04 following these instructions
(4) I got a brms error so I tried to run


sudo add-apt-repository -y "ppa:marutter/rrutter3.5"
sudo add-apt-repository -y "ppa:marutter/c2d4u3.5"

sudo apt update

sudo apt install -y r-cran-rstan r-cran-shinystan r-cran-brms

I am still getting errors:
(1) brms is still not installed or working and I am unsure how to fix that. The repositories and from (4) above did not work for me.
(2) AFNI is still saying I have python3 but that I need python2… so it doesn’t seem to recognize that I have python2 which makes me worried that if I use anything that needs python2, it will not find my python2.
(3) I still get an error of “login shell ‘bash’, trusting user to translate code examples from ‘tcsh’”

Here is my output of my afni check for reference:


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Linux
release:              5.4.0-33-generic
version:              #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020
distribution:         debian bullseye/sid 
number of CPUs:       8
apparent login shell: bash
shell RC file:        .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni           : /home/keith/abin/afni
afni version         : Precompiled binary linux_ubuntu_16_64: Jun  3 2020 
                     : AFNI_20.1.13 'Otho'
AFNI_version.txt     : AFNI_20.1.13, linux_ubuntu_16_64, Jun 03 2020
which python         : /home/keith/miniconda3/bin/python
python version       : 3.7.6
which R              : /usr/bin/R
R version            : R version 4.0.1 (2020-06-06) -- "See Things Now"
which tcsh           : /usr/bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/home/keith/abin/afni)
    R       : 1   (/usr/bin/R)
    python  : 1   (/home/keith/miniconda3/bin/python3.7)
    python2 : 1   (/usr/bin/python2.7)
    python3 : 2 
      /home/keith/miniconda3/bin/python3.7
      /usr/bin/python3.8


testing ability to start various programs...
    afni                 : success
    suma                 : success
    3dSkullStrip         : success
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : success
    SurfMesh             : success
    3dClustSim           : success
    3dMVM                : success

checking for R packages...
    rPkgsInstall -pkgs ALL -check : FAILURE
        
        oo Warning: 
           These packages are not installed on the computer: brms!
        

R RHOME : /usr/lib/R

checking for $HOME files...
    .afnirc                   : found
    .sumarc                   : found
    .afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

** failed to load module matplotlib.pyplot
-- matplotlib.pyplot is not required, but is desirable

-------------------------------- env vars --------------------------------
PATH = /home/keith/miniconda3/bin:/home/keith/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/keith/abin

PYTHONPATH = 
R_LIBS = /home/keith/R

LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH = 
DYLD_FALLBACK_LIBRARY_PATH = 

------------------------------ data checks -------------------------------
data dir : found AFNI_data6   under $HOME
           top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos   under $HOME
           top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo    under $HOME
           top history: ...s_New/data/Build_tmp on Mon Mar  4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas    : found TT_N27+tlrc  under /home/keith/abin

------------------------------ OS specific -------------------------------
which apt-get        : /usr/bin/apt-get
apt-get version      : apt 2.0.2ubuntu0.1 (amd64)


=========================  summary, please fix:  =========================
*  login shell 'bash', trusting user to translate code examples from 'tcsh'
*  have python version 3.7.6, some programs need 2.7.x
*  missing R packages (see rPkgsInstall)


Thank you again!

Sorry, I also had to install AFNI on MacOS version 10.15.4 and I ran into some similar issues too. I used this page. Here is the output of the check stage:


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Darwin
release:              19.4.0
version:              Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
distribution:         10.15.4 x86_64
number of CPUs:       20
apparent login shell: SHELL_NOT_DETECTED
shell RC file:        NONE (does not exist)

--------------------- AFNI and related program tests ---------------------
which afni           : /Users/jamie/abin/afni
afni version         : Precompiled binary macos_10.12_local: Jul  6 2018 
                     : AFNI_18.2.04
AFNI_version.txt     : AFNI_18.2.04, macos_10.12_local, Jul 06 2018
which python         : /Users/tlab/miniconda3/bin/python
python version       : 3.7.6
which R              : /usr/local/bin/R
R version            : R version 3.5.3 (2019-03-11) -- "Great Truth"
which tcsh           : /bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/Users/jamie/abin/afni)
    R       : 1   (/Library/Frameworks/R.framework/Versions/3.5/Resources/bin/R)
    python  : 4 
      /Users/tlab/miniconda3/bin/python3.7
      /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
      /Users/jamie/anaconda3/bin/python3.6
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python2 : 2 
      /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python3 : 4 
      /Users/tlab/miniconda3/bin/python3.7
      /Users/jamie/anaconda3/bin/python3.6
      /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
      /usr/bin/python3


testing ability to start various programs...
    afni                 : success
    suma                 : success
    3dSkullStrip         : success
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : success
    SurfMesh             : success
    3dClustSim           : success

checking for R packages...
    rPkgsInstall -pkgs ALL -check : FAILURE
        
        oo Warning: 
           These packages are not installed on the computer: afex!
        These packages are not installed on the computer: lme4!
        These packages are not installed on the computer: brms!
        

checking for $HOME files...
    .afnirc                   : found
    .sumarc                   : found
    .afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
** python module not found: PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

-------------------------------- env vars --------------------------------
PATH = /Users/tlab/miniconda3/bin:/Users/tlab/miniconda3/condabin:/Users/jamie/mrtrix3/bin:/usr/local/opt/qt/bin:/Applications/freesurfer/bin:/Applications/freesurfer/fsfast/bin:/Applications/freesurfer/tktools:/usr/local/fsl/bin:/Applications/freesurfer/mni/bin:/usr/local/fsl/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/jamie/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/jamie/dinifti:/Volumes/Documents/DTI Portfolio/shell-scripts:/Users/jamie/antsbin/bin:/usr/local/spharm:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/MRIcron:/Library/TeX/texbin:/opt/X11/bin:/Users/jamie/abin

PYTHONPATH = :/Users/jamie/python/

R_LIBS = 
LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH (sub-shell) = 
DYLD_FALLBACK_LIBRARY_PATH (sub-shell) = 

------------------------------ data checks -------------------------------
data dir : found AFNI_data6   under $HOME
           top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos   under $HOME
           top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo    under $HOME
           top history: ...s_New/data/Build_tmp on Mon Mar  4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas    : found TT_N27+tlrc  under /Users/jamie/abin

------------------------------ OS specific -------------------------------
which brew           : /usr/local/bin/brew
brew version         : Homebrew 2.1.7

-- for PyQt4 under brew, consider running:
   brew install cartr/qt4/pyqt
++ found valid link /usr/local/lib/libglib-2.0.dylib
   to ../Cellar/glib/2.54.3/lib/libglib-2.0.dylib
++ found 1 dylib files under '/opt/X11/lib/flat_namespace'
   -- found 'libXt' dylib files:
      /opt/X11/lib/flat_namespace/libXt.6.dylib
-- recent OS X, cheating to check DYLD_LIBRARY_PATH in cur shell 'SHELL_NOT_DETECTED'...
** env var DYLD_LIBRARY_PATH not set to contain /opt/X11/lib/flat_namespace
-- recent OS X, cheating to check DYLD_LIBRARY_PATH in shell 'tcsh'...
++ found evar DYLD_LIBRARY_PATH = /opt/X11/lib/flat_namespace:/opt/X11/lib/flat_namespace

=========================  summary, please fix:  =========================
*  login shell 'SHELL_NOT_DETECTED', trusting user to translate from 'tcsh'
*  have python version 3.7.6, some programs need 2.7.x
*  missing R packages (see rPkgsInstall)
*  consider linking /usr/local/Cellar/gcc/9.1.0/lib/gcc/9/libgomp.1.dylib under /usr/local/lib
*  please set DYLD_LIBRARY_PATH to /opt/X11/lib/flat_namespace in SHELL_NOT_DETECTED

(1) I am unsure about what “SHELL_NOT_DETECTED” or how to “set DYLD_LIBRARY_PATH to /opt/X11/lib/flat_namespace in SHELL_NOT_DETECTED”
(2) Again, I installed Miniconda for both 2.7 and 3.7 but it seems to only detect 2.7?
(3) rPkgsInstall had errors with afex, lme4, and brms and I cannot install them
(4) I do not know what it means (or how to) link /usr/local/Cellar/gcc/9.1.0 etc. under /usr/local/lib

Thank you for the help with that too!

That AFNI package is about 2 years old. Is that needed, or can you test a current version? If you are okay running a current one, it might be easiest to start with:

@update.afni.binaries -defaults

Thanks,

  • rick

Thank you.

I ran that on my Ubuntu computer and it appears to be up to date there.

On my MacOS 10.15 however, I get errors when I attempt that update as stated. At first I ran it without sudo privileges and it told me


** you do not have write permissions in the install directory
   (install dir = /Users/nameofusersubstitutedhere/abin)

So I decided to run it with sudo, but that still gave me errors as seen below:


-- running @update.afni.binaries version 3.5, April 4, 2018
-- have AFNI binaries under /Users/jamie/abin
-- install dir: using existing /Users/jamie/abin
-- any downloads will be from https://afni.nimh.nih.gov via wget

-- attempting to install package macos_10.12_local under
   install dir: /Users/jamie/abin...
-- have install dir
++ working in new temp dir, .tmp.install
++ getting install prog: wget macos_10.12_local/@update.afni.binaries ...
wget https://afni.nimh.nih.gov/pub/dist/bin/macos_10.12_local/@update.afni.binaries
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/wget
  Reason: image not found
Abort
** failed, trying linux_openmp_64/@update.afni.binaries ...
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/wget
  Reason: image not found
Abort
** failed again, skipping check for new installer
++ downloading test file: wget macos_10.12_local/afni ...
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/wget
  Reason: image not found
Abort
rm: afni: No such file or directory

++ update needed, installing...

++ downloading full package: wget macos_10.12_local.tgz ...
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/wget
  Reason: image not found
Abort
** failed to download package https://afni.nimh.nih.gov/pub/dist/tgz/macos_10.12_local.tgz

If you are updating for another user, it might be better to leave them as owners. Things will become messy for them later if there are root-owned files under their home directories.

In any case, it looks like your ‘wget’ command (/usr/local/bin/wget) is not working, so that might need updating. But you can use curl, instead. Just add the “-curl” option to the @update.afni.binaries command.

  • rick

Thank you. Using the -curl option got me further. Here is the output for the MacOS now with -checkall. There are still several failures it seems.

One thing I am especially confused about is “consider setting DYLD_LIBRARY_PATH to /opt/X11/lib/flat_namespace” as I have confirmed with echo $DYLD_LIBRARY_PATH that it is set to that (and there is an export line in my .bashrc that is already there exporting that same path).

Thanks!


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Darwin
release:              19.4.0
version:              Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
distribution:         unknown Darwin
number of CPUs:       20
apparent login shell: sh
shell RC file:        .profile (does not exist)

--------------------- AFNI and related program tests ---------------------
which afni           : /Users/jamie/abin/afni
afni version         : Precompiled binary macos_10.12_local: Jun  3 2020 
                     : AFNI_20.1.13 'Otho'
AFNI_version.txt     : AFNI_20.1.13, macos_10.12_local, Jun 03 2020
which python         : /Users/tlab/miniconda3/bin/python
python version       : 3.7.6
which R              : /usr/local/bin/R
R version            : R version 3.5.3 (2019-03-11) -- "Great Truth"
which tcsh           : /bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/Users/jamie/abin/afni)
    R       : 1   (/Library/Frameworks/R.framework/Versions/3.5/Resources/bin/R)
    python  : 4 
      /Users/tlab/miniconda3/bin/python3.7
      /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
      /Users/jamie/anaconda3/bin/python3.6
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python2 : 2 
      /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
      /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
    python3 : 4 
      /Users/tlab/miniconda3/bin/python3.7
      /Users/jamie/anaconda3/bin/python3.6
      /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
      /usr/bin/python3


testing ability to start various programs...
    afni                 : success
    suma                 : success
    3dSkullStrip         : success
    uber_subject.py      : success
    3dAllineate          : success
    3dRSFC               : success
    SurfMesh             : success
    3dClustSim           : success
    3dMVM                : FAILURE
        Error in dyn.load(ll) : 
          unable to load shared object '/Users/jamie/abin/R_io.so':
          dlopen(/Users/jamie/abin/R_io.so, 6): Library not loaded: /sw/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libR.dylib
          Referenced from: /Users/jamie/abin/R_io.so
          Reason: Incompatible library version: R_io.so requires version 3.6.0 or later, but libR.dylib provides version 3.5.0
        Calls: source ... withVisible -> eval -> eval -> set_R_io -> dyn.load
        Execution halted

checking for R packages...
    rPkgsInstall -pkgs ALL -check : success

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

checking for $HOME files...
    .afnirc                   : found
    .sumarc                   : found
    .afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

** failed to load module matplotlib.pyplot
-- matplotlib.pyplot is not required, but is desirable

-- python binaries under /usr/local/bin:
    /usr/local/bin/python3 (sym link to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6)
    /usr/local/bin/python2 (sym link to /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7)
    /usr/local/bin/python3.6 (sym link to /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6)
    /usr/local/bin/python2.7 (sym link to /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7)

-------------------------------- env vars --------------------------------
PATH = /Users/tlab/miniconda3/bin:/Users/tlab/miniconda3/condabin:/Users/jamie/mrtrix3/bin:/usr/local/opt/qt/bin:/Applications/freesurfer/bin:/Applications/freesurfer/fsfast/bin:/Applications/freesurfer/tktools:/usr/local/fsl/bin:/Applications/freesurfer/mni/bin:/usr/local/fsl/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/jamie/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/jamie/dinifti:/Volumes/Documents/DTI Portfolio/shell-scripts:/Users/jamie/antsbin/bin:/usr/local/spharm:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/MRIcron:/Library/TeX/texbin:/opt/X11/bin:/Users/jamie/abin

PYTHONPATH = 
R_LIBS = 
LD_LIBRARY_PATH = 
DYLD_LIBRARY_PATH = 
DYLD_FALLBACK_LIBRARY_PATH = 

------------------------------ data checks -------------------------------
data dir : found AFNI_data6   under /Users/tlab
           top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos   under /Users/tlab
           top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo    under /Users/tlab
           top history: ...s_New/data/Build_tmp on Mon Mar  4 11:56:45 EST 2013
data dir : found afni_handouts under /Users/tlab
atlas    : found TT_N27+tlrc  under /Users/jamie/abin

------------------------------ OS specific -------------------------------
XQuartz version      : 2.7.11

which brew           : /usr/local/bin/brew
brew version         : Error: Running Homebrew as root is extremely dangerous and no longer supported.

-- for PyQt4 under brew, consider running:
   brew install cartr/qt4/pyqt
++ found 1 dylib files under '/opt/X11/lib/flat_namespace'
   -- found 'libXt' dylib files:
      /opt/X11/lib/flat_namespace/libXt.6.dylib
** env var DYLD_LIBRARY_PATH is not set to contain /opt/X11/lib/flat_namespace
   (so afni and suma may fail)

=========================  summary, please fix:  =========================
*  login shell 'sh', trusting user to translate code examples from 'tcsh'
*  shell sh  : MISSING login shell setup file .profile
*  have python version 3.7.6, some programs need 2.7.x
*  AFNI programs show FAILURE
*  OS X version might be old
*  consider setting DYLD_LIBRARY_PATH to /opt/X11/lib/flat_namespace