3dMatch symbol lookup error

Hi,

My lab just transferred our data to a new server and reinstalled AFNI on that server. When running afni_system_check.py -check_all it seems that all of the AFNI functions successfully installed:


-------------------------------- general ---------------------------------
architecture:         64bit 
system:               Linux
release:              4.18.0-240.1.1.el8_3.x86_64
version:              #1 SMP Thu Nov 19 17:20:08 UTC 2020
distribution:         CentOS Linux 8.3.2011 
number of CPUs:       2
apparent login shell: sh
shell RC file:        .profile (exists)

--------------------- AFNI and related program tests ---------------------
which afni           : /export/home/fs01/ngc26/abin/afni
afni version         : Precompiled binary linux_centos_7_64: Feb  8 2021 
                     : AFNI_21.0.07 'Titus'
AFNI_version.txt     : AFNI_21.0.07, linux_centos_7_64, Feb 08 2021
which python         : /usr/bin/python
python version       : 2.7.17
which R              : /usr/bin/R
R version            : R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
which tcsh           : /usr/bin/tcsh

instances of various programs found in PATH:
    afni    : 1   (/export/home/fs01/ngc26/abin/afni)
    R       : 1   (/usr/bin/R)
    python  : 1   (/usr/bin/python2.7)
    python2 : 1   (/usr/bin/python2.7)
    python3 : 1   (/usr/libexec/platform-python3.6)


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: lmerTest!
        These packages are not installed on the computer: brms!
        

R RHOME : /usr/lib64/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 = /export/home/fs01/ngc26/abin/:/opt/ohpc/pub/mpi/libfabric/1.10.1/bin:/opt/ohpc/pub/mpi/ucx-ohpc/1.8.0/bin:/opt/ohpc/pub/mpi/openmpi4-gnu9/4.0.4/bin:/opt/ohpc/pub/compiler/gcc/9.3.0/bin:/opt/ohpc/pub/utils/prun/2.0:/opt/ohpc/pub/utils/autotools/bin:/opt/ohpc/pub/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

PYTHONPATH = 
R_LIBS = /home/fs01/ngc26/R

LD_LIBRARY_PATH = /opt/ohpc/pub/mpi/libfabric/1.10.1/lib:/opt/ohpc/pub/mpi/ucx-ohpc/1.8.0/lib:/opt/ohpc/pub/mpi/openmpi4-gnu9/4.0.4/lib:/opt/ohpc/pub/compiler/gcc/9.3.0/lib64:/usr/local/lib

DYLD_LIBRARY_PATH = 
DYLD_FALLBACK_LIBRARY_PATH = 

------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas    : found TT_N27+tlrc  under /export/home/fs01/ngc26/abin/

------------------------------ OS specific -------------------------------
which dnf            : /usr/bin/dnf
dnf version          : 4.2.23
which yum            : /usr/bin/yum
yum version          : 4.2.23


=========================  summary, please fix:  =========================
*  just be aware: login shell 'sh', but our code examples use 'tcsh'
*  missing R packages (see rPkgsInstall)
*  insufficient data for AFNI bootcamp


However, there are some AFNI functions that keep giving this error (this example is with 3dMatch, but the same happens with 3dNetCorr)


3dMatch: symbol lookup error: 3dMatch: undefined symbol: gsl_stats_correlation

After digging around for possible answers it seems like a GSL installation problem and potentially an issue with symbolic links; however, I do not know too much about these symbolic links and I don’t want to mess up any important directories for the AFNI installation. Any suggestions on what might be going on with this gsl_stats_correlation error?

Here is my afni -ver


Precompiled binary linux_centos_7_64: Feb  8 2021 (Version AFNI_21.0.07 'Titus')

Hi again,

I think I fixed the problem by removing a local gsl file:


sudo rm /usr/local/lib/libgsl.so.0

and then resetting the $LD_LIBRARY_PATH


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib

I’d love to know if this is completely wrong!! If it’s right I figure this may help someone else with a similar issue.

Thanks

Howdy-

That’s interesting, and glad you sorted it out. I haven’t heard of that being required on CentOS previously.

Out of curiosity, what is the output of this:


# A
locate libgsl.so

# B
ls -l `locate libgsl.so`

?

For me on Ubuntu 20.04 (so, perhaps totally unrelated), the output of A is:


/usr/lib/x86_64-linux-gnu/libgsl.so
/usr/lib/x86_64-linux-gnu/libgsl.so.19
/usr/lib/x86_64-linux-gnu/libgsl.so.23
/usr/lib/x86_64-linux-gnu/libgsl.so.23.1.0

… and of B is:


lrwxrwxrwx 1 root root      16 Mar 22  2020 /usr/lib/x86_64-linux-gnu/libgsl.so -> libgsl.so.23.1.0
lrwxrwxrwx 1 root root      38 Jan 28 13:44 /usr/lib/x86_64-linux-gnu/libgsl.so.19 -> /usr/lib/x86_64-linux-gnu/libgsl.so.23
lrwxrwxrwx 1 root root      16 Mar 22  2020 /usr/lib/x86_64-linux-gnu/libgsl.so.23 -> libgsl.so.23.1.0
-rw-r--r-- 1 root root 2599056 Mar 22  2020 /usr/lib/x86_64-linux-gnu/libgsl.so.23.1.0

Just giving a demonstration of where the “real” libso file is, and what are links.

–pt

The output of A is


/opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so
/opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so.25
/opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so.25.0.0
/opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so
/opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so.25
/opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so.25.0.0
/usr/lib/libgsl.so.0
/usr/lib/libgsl.so.25
/usr/lib64/libgsl.so
/usr/lib64/libgsl.so.23
/usr/lib64/libgsl.so.23.1.0
/usr/local/lib/libgsl.so
/usr/local/lib/libgsl.so.0.7.0
/usr/local/lib/libgsl.so.25
/usr/local/lib/libgsl.so.25.0.0
/usr/local/lib/lib/libgsl.so
/usr/local/lib/lib/libgsl.so.25
/usr/local/lib/lib/libgsl.so.25.0.0

and the output of B is


lrwxrwxrwx 1 root root       16 Feb  9 20:36 /opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so -> libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 Feb  9 20:36 /opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so.25 -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root 15796024 Feb  9 20:36 /opt/ohpc/pub/apps/gsl-2.6/.libs/libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 Jul 29  2020 /opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so -> libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 Jul 29  2020 /opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so.25 -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root 18412712 Jul 29  2020 /opt/ohpc/pub/libs/gnu9/gsl/2.6/lib/libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 May 14  2019 /usr/lib64/libgsl.so -> libgsl.so.23.1.0
lrwxrwxrwx 1 root root       16 May 14  2019 /usr/lib64/libgsl.so.23 -> libgsl.so.23.1.0
-rwxr-xr-x 1 root root  2966056 May 14  2019 /usr/lib64/libgsl.so.23.1.0
lrwxrwxrwx 1 root root       24 Feb  9 17:57 /usr/lib/libgsl.so.0 -> /usr/local/lib/libgsl.so
lrwxrwxrwx 1 root root       11 Feb 10 14:51 /usr/lib/libgsl.so.25 -> libgsl.so.0
lrwxrwxrwx 1 root root       16 Feb  9 19:05 /usr/local/lib/libgsl.so -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root  9599704 Feb  9 18:15 /usr/local/lib/libgsl.so.0.7.0
lrwxrwxrwx 1 root root       16 Feb  9 19:05 /usr/local/lib/libgsl.so.25 -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root 15796024 Feb  9 19:05 /usr/local/lib/libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 Feb  9 20:38 /usr/local/lib/lib/libgsl.so -> libgsl.so.25.0.0
lrwxrwxrwx 1 root root       16 Feb  9 20:38 /usr/local/lib/lib/libgsl.so.25 -> libgsl.so.25.0.0
-rwxr-xr-x 1 root root 15796024 Feb  9 20:38 /usr/local/lib/lib/libgsl.so.25.0.0

-Nick