iOS (terminal): Library not loaded. Image not found

Submitted by Sebastià Salvà… on Fri, 10/30/2020 - 12:54
Forums

Dear all,

I have just installed FreeLing 4.2 in a MacBook (iOS Catalina) and the language pack.
I amb new on FreeLing and I am not very used to use Terminal.

I'd like to tag a text in Catalan. The file TXT (UTF 8) is in the Documents directory.

When I try some command, I'll get this:

Nou-MacBook-Air:~ sebastia$ cd ~/documents
Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged prova_preproc.tag
dyld: Library not loaded: /usr/local/opt/boost/lib/libboost_regex-mt.dylib
Referenced from: /usr/local/bin/analyzer
Reason: image not found
/usr/local/bin/analyze: line 39: 24951 Abort trap: 6 $FREELING/bin/analyzer $param
Nou-MacBook-Air:documents sebastia$

What I should do, in order to load that library? FreeLing is installed in the default setup-up directories for MAC.

I would apreciate any help.

Permalink

Thanks for the answer. I have just installed XCode, HomeBrew and I have run the "brew install boost icu4c" command.

However, now I get this other message:

Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged mytext.tag
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: 7433 Abort trap: 6 $FREELING/bin/analyzer $param
Nou-MacBook-Air:documents sebastia$

And another question, in case we can manage to solve the previous problem: how should I pick up the Catalan language package, which is already downloaded and installed? I mean, when running an instruction such as "analyze -f myconfig.cfg --outlv tagged mytext.tag", how does FreeLing now that this text is in Catalan?

Dear Lluís,

I installed XCode, HomeBrew and I ran the "brew install boost icu4c" command.

However, I get this other message:

sebastia@Nou-MacBook-Air documents % analyze -f myconfig.cfg --outlv tagged rond1_preproc.tag
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: 4739 Abort trap: 6 $FREELING/bin/analyzer $param
sebastia@Nou-MacBook-Air documents %

What could I do?

Besides this, in case we can manage to solve the previous problem: how should I pick up the Catalan language package, which is already downloaded and installed? I mean, when running an instruction such as "analyze -f myconfig.cfg --outlv tagged mytext.tag", how does FreeLing now that this text is in Catalan?

I would really apreciate your help.

Sebastià Salvà…

Fri, 10/30/2020 - 18:48

Thanks for the answer. I have just installed XCode, HomeBrew and I have run the "brew install boost icu4c" command.

However, now I get this other message:

Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged mytext.tag
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: 7433 Abort trap: 6 $FREELING/bin/analyzer $param
Nou-MacBook-Air:documents sebastia$

Thanks you for the answer.

sebastia@Nou-MacBook-Air ~ % brew list --versions
boost 1.74.0
cmake 3.18.4
gdbm 1.18.1_1
icu4c 67.1
node 15.0.1
openssl@1.1 1.1.1h
pcre 8.44
perl 5.32.0
python@3.9 3.9.0_1
readline 8.0.4
sqlite 3.33.0
swig 4.0.2
xz 5.2.5
sebastia@Nou-MacBook-Air ~ %

What should I do now?

Dear Lluís,

I am still not able to properly run FreeLing aftern installing it. I'd apreciate some help.

VERSIONS:
boost 1.74.0
cmake 3.18.4
gdbm 1.18.1_1
icu4c 67.1
node 15.0.1
openssl@1.1 1.1.1h
pcre 8.44
perl 5.32.0
python@3.9 3.9.0_1
readline 8.0.4
sqlite 3.33.0
swig 4.0.2
xz 5.2.5