ERROR- dyld: Library not loaded

Dear All.

I have got an error message.

dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
Referenced from: /Users/smartlab/abin/3dDespike
Reason: image not found

I checked the status of my Mac. Please see below.
How can I solve this problem?

Please help for me.

Thanks a lot.

-----afni_system_check.py -check_all

Checking for the Xcode Command Line Tools…
No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’.
The Xcode Command Line Tools are installing, please rerun when it finishes.
xcode-select: note: install requested for command line developer tools
[brain_mac:~] smartlab% afni_system_check.py -check_all
-------------------------------- general ---------------------------------
architecture: 64bit
system: Darwin
release: 15.3.0
version: Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64
distribution: 10.11.3 x86_64
number of CPUs: 8
apparent login shell: tcsh

--------------------- AFNI and related program tests ---------------------
which afni : /Users/smartlab/abin/afni
afni version : Precompiled binary macosx_10.7_Intel_64: Dec 22 2015
which python : /usr/bin/python
python version : 2.7.10
which R : /usr/local/bin/R
R version : R version 3.4.2 (2017-09-28) – “Short Summer”
which tcsh : /bin/tcsh

instances of various programs found in PATH:
afni : 1 (/Users/smartlab/abin/afni)
R : 1 (/Library/Frameworks/R.framework/Versions/3.4/Resources/bin/R)
python : 1 (/usr/bin/python)

testing ability to start various programs…
afni : success
suma : FAILURE
dyld: Library not loaded: /sw/lib/libglib-2.0.0.dylib
Referenced from: /Users/smartlab/abin/suma
Reason: image not found
3dSkullStrip : FAILURE
dyld: Library not loaded: /sw/lib/libglib-2.0.0.dylib
Referenced from: /Users/smartlab/abin/3dSkullStrip
Reason: image not found
uber_subject.py : success
3dAllineate : FAILURE
dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
Referenced from: /Users/smartlab/abin/3dAllineate
Reason: image not found
3dRSFC : success
SurfMesh : FAILURE
dyld: Library not loaded: /sw/lib/libglib-2.0.0.dylib
Referenced from: /Users/smartlab/abin/SurfMesh
Reason: image not found

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: lme4!
    These packages are not installed on the computer: paran!
    These packages are not installed on the computer: psych!

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

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

** python module not found: PyQt4

 -> please see the output of "uber_subject.py -help_install"

-------------------------------- env vars --------------------------------
PATH = /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/smartlab/abin

PYTHONPATH =
R_LIBS =
LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH =

------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing suma_demo
data dir : missing FATCAT_DEMO
atlas : found TT_N27+tlrc under ./

------------------------------ OS specific -------------------------------

---------------------------- general comments ----------------------------

  • consider copying AFNI.afnirc to ~/.afnirc
  • consider running “suma -update_env” for .sumarc

Howdy-

That is a preeettttty old version of the binaries.

Rick has updated a lot of stuff in the build, niceifying a lot of how the dependencies work for Mac, and there is now a new Mac tarball we recommend everyone using, called “macosx_10.7_local” (local because the local build on our end takes care of several dependencies, so you shouldn’t have to deal with the errors you are currently seeing). The instructions for downloading/installing are here:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_mac.html

You might just want to push your present AFNI binary directory to a new location:


cd /Users/smartlab/
mv abin abin_OLD

… and then go through the install steps in the link above. Once you have run the system check again on the new install and verified that everything is awesome, you can probably just remove the abin_OLD (if you want, to free up space).

–pt