I am trying to run Freesurfer commands (eg. mri_ca_label) using Matlab in a Mac computer (macOS High Sierra 10.13.6 version) and I'm receiving the following error that I suspect are due to library incompatibilities:
dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address
Referenced from: /Applications/freesurfer/bin/../lib/gcc/lib/libgomp.1.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ___emutls_get_address
Referenced from: /Applications/freesurfer/bin/../lib/gcc/lib/libgomp.1.dylib
Expected in: /usr/lib/libSystem.B.dylib
mris_ca_label -aseg /Applications/freesurfer/subjects/10018/mri/aseg.mgz -seed 1234 10018 lh /Applications/freesurfer/subjects/10018/surf/lh.sphere.reg /Applications/freesurfer/average/lh.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs /Applications/freesurfer/subjects/10018/label/lh.aparc.annot: Aborted
ans =
134
I realized that
this error has been previously reported and, as Andrew said, one of the possible solutions could be to disable the SIP (System Protection Integrity). I have disabled the SIP following the instructions indicated
here but unfortunately Matlab continues giving the same error.
How could I solve this problem?. Any help would be appreciated.
Thanks in advance.