AFNI setup error_dyld: Symbol not found: _iconv

Hi, guys:
I’m new to learn AFNI.
My Mac OS X is 10.7.5 and Shell is tcsh.

When I try to setup and give command:
echo ‘set path = ( $path $HOME/abin )’ >> .cshrc
echo ‘setenv DYLD_FALLBACK_LIBRARY_PATH $HOME/abin’ >> .cshrc
source .cshrc
it shows error below:
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libcups.2.dylib
Expected in: /Users/PRLAB/abin/libiconv.2.dylib
in /usr/lib/libcups.2.dylib
if: Expression Syntax.
Same message will occur everytime when I restart my terminal.

Would anyone kindly give me clues to solve this?

What is the output from: cat ~/abin/AFNI_version.txt

  • rick

Hi, rick:
When I typed “cat ~/abin/AFNI_version.txt”,
it showed:
AFNI_18.1.18
macosx_10.7_Intel_64
May 25 2018

That is good. So try the 10.7_local package instead:

@update.afni.binaries -defaults -package macosx_10.7_local
  • rick

Hi, rick:

It didn’t work.
Run into the same situation:(

When I give “@update.afni.binaries -defaults -package macosx_10.7_local”
it showed
dyld: lazy symbol binding failed: Symbol not found: _iconv_open
Referenced from: /bin/tcsh
Expected in: /Users/PRLAB/abin/libiconv.2.dylib

dyld: Symbol not found: _iconv_open
Referenced from: /bin/tcsh
Expected in: /Users/PRLAB/abin/libiconv.2.dylib

Trace/BPT trap

It seems like something wrong with library or path, which in turn make AFNI find nothing or wrong way to install.
Would you plz give some advice to fix it?
Thanks a lot!

Philip

Hi Philip,

What is the output of:

printenv | grep DY

I think you might have DYLD_LIBRARY_PATH set
to your abin, which would have to be cleared.

  • rick

Hi rick,

You are right.

When I give “printenv | grep DY”, it shows
DYLD_LIBRARY_PATH=/Users/PRLAB/abin
DYLD_FALLBACK_LIBRARY_PATH=/Users/PRLAB/abin

So you mean I should not set DYLD_LIBRARY_PATH in abin?
If yes, what command line could I try to correct it?

Sorry just new to touch this field, really appreciate for your help.

Philip

Change DYLD_LIBRARY_PATH to be /opt/X11/lib/flat_namespace
(in your .cshrc file), and open a new terminal. It needs to point
to that directory because of the XQuartz version of libXt.

You can close your current terminal window(s), or adjust
it there, too:

setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace

Also, the DYLD_FALLBACK_LIBRARY_PATH variable
should not be needed for the local version of binaries.

Actually, I am not positive whether you need flat_namspace
in 10.7. After making these changes, try running suma, or
report the output from:

afni_system_check.py -check_all

  • rick