Problem running "analyze" script after installation

Submitted by jnferfer on Tue, 03/30/2021 - 10:54
Forums

Hello,

I have installed Freeling from the following package for MacOS: freeling-4.2-macOSX.pkg

Freeling is now installed in /usr/local/share/freeling

I have previously installed everything necessary following the instructions in "Install Freeling Requirements on MacOS":
brew install boost icu4c
brew install swig

Then I try to run the following command from /usr/local/share/freeling (using Freeling the easy way, just to process corpus):

analyze -f myconfig.cfg mytext.mrf

I get the following error related to "dyld":


dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.67.dylib
Referenced from: /usr/local/bin/analyzer
Reason: image not found
/usr/local/bin/analyze: line 39: 2279 Abort trap: 6 $FREELING/bin/analyzer $param

My current MacOS version is Catalina 10.15.7

Would you please give me some help?

Thanks a lot,

Juan

It just means you are missing that library.

"brew install icu4c"  should have installed it, butir  probably installed a version newer than 67

check folder /usr/local/opt/icu4c/lib/libicuuc.* and find out which libicuuc.* file is installed there.  If it is not version 67, then you need to install version 67 (telling homebrew to do so)

Alternatively, you can build freeling from source, downloading the zip fle and following the instrucions on the manual.  In that way, your freeling version will be build with the icu version you have installed.

 

 

Thanks! I managed to downgrade icu4c to version 67.1
However, now I get the following error when running analyzer:


dyld: lazy symbol binding failed: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm
Referenced from: /usr/local/lib/libfreeling.dylib
Expected in: /usr/local/lib/libboost_regex-mt.dylib


dyld: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm
Referenced from: /usr/local/lib/libfreeling.dylib
Expected in: /usr/local/lib/libboost_regex-mt.dylib


/usr/local/bin/analyze: line 39: 11888 Abort trap: 6 $FREELING/bin/analyzer $param