When running mrinfo
/dcminfo
on my Mac (Sequoia 15.3
), I encountered an error:
dyld[63980]: Library not loaded: /opt/homebrew/opt/libtiff/lib/libtiff.5.dylib
Referenced from: <08BFBB0E-2142-310B-A3F5-3D3789076AC9> /Users/star_volcano/mrtrix3/bin/mrinfo
Reason: tried:
'/Applications/freesurfer/7.3.2/lib/gcc/lib/libtiff.5.dylib' (no such file),
'/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file),
'/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file),
'/usr/local/lib/libtiff.5.dylib' (no such file),
'/usr/lib/libtiff.5.dylib' (no such file, not in dyld cache),
'/Applications/freesurfer/7.3.2/lib/gcc/lib/libtiff.5.dylib' (no such file),
'/opt/homebrew/Cellar/libtiff/4.7.0/lib/libtiff.5.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libtiff/4.7.0/lib/libtiff.5.dylib' (no such file),
'/opt/homebrew/Cellar/libtiff/4.7.0/lib/libtiff.5.dylib' (no such file),
'/usr/local/lib/libtiff.5.dylib' (no such file),
'/usr/lib/libtiff.5.dylib' (no such file, not in dyld cache)
zsh: abort mrinfo
I checked the directory at /opt/homebrew/opt/libtiff/lib/
and found that libtiff.5.dylib
was missing, with only libtiff.6.dylib
available. To resolve the issue, I created a symbolic link from libtiff.5.dylib
to libtiff.6.dylib
, which successfully fixed the bug.
sudo ln -s libtiff.6.dylib libtiff.5.dylib