Problem during "compile_kb"

81 views
Skip to first unread message

Lorenzo Pietrangeli

unread,
Jul 11, 2012, 11:49:16 AM7/11/12
to ukb...@googlegroups.com
Hello,
I'm trying to compile WordNet through the compile_kb command in the following way:
      compile_kb -o wn17.bin lkb_sources/17/wnet17_rels.txt

but I got the following error:
  dyld: lazy symbol binding failed: Symbol not found: __ZN5boost6system19get_system_categoryEv
    Referenced from: /usr/local/bin/compile_kb
    Expected in: /usr/local/lib/libboost_system.dylib

  dyld: Symbol not found: __ZN5boost6system19get_system_categoryEv
    Referenced from: /usr/local/bin/compile_kb
    Expected in: /usr/local/lib/libboost_system.dylib

  Trace/BPT trap: 5

What can I do for solve the problem?

Further details:
  • MacOsX Lion
  • Boost 1.49.0
  • UKB-2.0 (but I've the same problem with the 0.1.6 version)
  • /usr/local/bin/compile_kb: Mach-O 64-bit executable x86_64 (file command output)

Best,
Lorenzo Pietrangeli

Aitor Soroa

unread,
Jul 11, 2012, 2:46:40 PM7/11/12
to ukb...@googlegroups.com
Hi Lorenzo,

I'm not sure what the problem is. Can you please run the "ldd" on an
executable and report the output ? For instance:

% ldd compile_kb

best,
aitor

On Wed, Jul 11, 2012 at 08:49:16AM -0700, Lorenzo Pietrangeli wrote:
> Hello,
> I'm trying to compile WordNet through the compile_kb command in the
> following way:
> compile_kb -o wn17.bin lkb_sources/17/wnet17_rels.txt
>
> but I got the following error:
> dyld: lazy symbol binding failed: Symbol not found:
> __ZN5boost6system19get_system_categoryEv
> Referenced from: /usr/local/bin/compile_kb
> Expected in: /usr/local/lib/libboost_system.dylib
>
> dyld: Symbol not found: __ZN5boost6system19get_system_categoryEv
> Referenced from: /usr/local/bin/compile_kb
> Expected in: /usr/local/lib/libboost_system.dylib
>
> Trace/BPT trap: 5
>
> What can I do for solve the problem?
>
> Further details:
>
> - MacOsX Lion
> - Boost 1.49.0
> - UKB-2.0 (but I've the same problem with the 0.1.6 version)
> - /usr/local/bin/compile_kb: Mach-O 64-bit executable x86_64 (file
> command output)
>
>
> Best,
> Lorenzo Pietrangeli
>
> --
> You received this message because you are subscribed to the Google Groups "ukblist" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ukblist/-/u_TmCllxS5YJ.
> To post to this group, send email to ukb...@googlegroups.com.
> To unsubscribe from this group, send email to ukblist+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ukblist?hl=en.
>

--
ondo izan
aitor

Lorenzo Pietrangeli

unread,
Jul 12, 2012, 4:58:32 AM7/12/12
to ukb...@googlegroups.com
Hi Aitor,
I used the command "otool" with -L option because I'm on Mac Os X, and I got the following result:
  % otool -L /usr/local/bin/compile_kb
  /usr/local/bin/compile_kb:
libboost_program_options.dylib (compatibility version 0.0.0, current version 0.0.0)
libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0)
libboost_filesystem.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

Best,
Lorenzo
> To unsubscribe from this group, send email to ukblist+unsubscribe@googlegroups.com.

Aitor Soroa

unread,
Jul 16, 2012, 3:27:32 AM7/16/12
to ukb...@googlegroups.com
Hi Lorenzo,

sorry for the delay. My guess is that the executables are not able to
find the dynamic libraries, and thus exit with the error "lazy symbol
binding failed" (but I can be wrong. I don't know anything about Os X,
so I'm just guessing). Maybe you have installed boost in a non-standard
path? In linux you can deal with this problem by setting the
LD_LIBRARY_PATH environment variable, like this:

% LD_LIBRARY_PATH=/path/to/boost ./ukb_wsd

maybe you can try this. Another option is to create a statically linked
executables, just by executing:

% ./configure --enable-static
% make clean; make; make install;

best,
aitor
> > ukblist+u...@googlegroups.com.
> > > For more options, visit this group at
> > http://groups.google.com/group/ukblist?hl=en.
> > >
> >
> > --
> > ondo izan
> > aitor
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ukblist" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ukblist/-/gKlJtHpe4a4J.
> To post to this group, send email to ukb...@googlegroups.com.
> To unsubscribe from this group, send email to ukblist+u...@googlegroups.com.

Lorenzo Pietrangeli

unread,
Jul 16, 2012, 12:25:19 PM7/16/12
to ukb...@googlegroups.com
Hello Aitor,
on MacOsX there is the DYLD_LIBRARY_PATH environment variable.
Your first solution works, thank you!

Best
> > > For more options, visit this group at
> > http://groups.google.com/group/ukblist?hl=en.
> > >
> >
> > --
> > ondo izan
> >                                 aitor
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ukblist" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ukblist/-/gKlJtHpe4a4J.
> To post to this group, send email to ukb...@googlegroups.com.
> To unsubscribe from this group, send email to ukblist+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages