error while loading shared libraries: libkaldi-base.so: cannot open shared object file: No such file or directory

4,113 views
Skip to first unread message

蔡红

unread,
Jul 5, 2017, 5:34:49 AM7/5/17
to kaldi...@googlegroups.com

Hi,

I  compiled the updated kaldi-asr source code with nnet3 and ran several examples,  there are same error, that is "error while loading shared libraries: libkaldi-base.so: cannot open shared object file: No such file or directory". But I find libkaldi-base.so under /src/base.

Could anyone tell me where & how to set the path for libkaldi-base.so?

Thanks a lot!

BRs
Anne

anand

unread,
Jul 5, 2017, 6:50:51 AM7/5/17
to kaldi-help, cai...@d-power.com.cn
Symbolic links should be present in $KALDI_ROOT/src/lib. Ensure that you have KALDI_ROOT pointing to your kaldi path. export LD_LIBRARY_PATH="$KALDI_ROOT/src/lib"

Daniel Povey

unread,
Jul 5, 2017, 2:04:31 PM7/5/17
to kaldi-help, 蔡红
Usually people get this problem because they moved their source tree.
Also if NFS is set up in a weird way you might get this problem.
> --
> Go to http://kaldi-asr.org/forums.html find out how to join
> ---
> You received this message because you are subscribed to the Google Groups
> "kaldi-help" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kaldi-help+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

蔡红

unread,
Jul 5, 2017, 11:00:46 PM7/5/17
to kaldi...@googlegroups.com, dpovey, anand
Thanks all for your responses.

I copied libkaldi-base.so to $KALDI_ROOT/src/lib, then run examples successfully. Really, I don't know why the library wasn't put to the expected directory.

BRs
Anne
> -----原始邮件-----
> 发件人: Daniel Povey <dpo...@gmail.com>
> 发送时间: 2017年7月6日 星期四
> 收件人: kaldi-help <kaldi...@googlegroups.com>
> 抄送: "蔡红" <cai...@d-power.com.cn>
> 主题: Re: [kaldi-help] Re: error while loading shared libraries: libkaldi-base.so: cannot open shared object file: No such file or directory
> 
> Usually people get this problem because they moved their source tree.
> Also if NFS is set up in a weird way you might get this problem.
> 
> 
> On Wed, Jul 5, 2017 at 6:50 AM, anand <joseph.an...@gmail.com> wrote:
> > Symbolic links should be present in $KALDI_ROOT/src/lib. Ensure that you
> > have KALDI_ROOT pointing to your kaldi path. export
> > LD_LIBRARY_PATH="$KALDI_ROOT/src/lib"
> >
> >
> > On Wednesday, July 5, 2017 at 3:04:49 PM UTC+5:30, 蔡红 wrote:
> >>
> >>
> >> Hi,
> >>
> >> I  compiled the updated kaldi-asr source code with nnet3 and ran several
> >> examples,  there are same error, that is "error while loading shared
> >> libraries: libkaldi-base.so: cannot open shared object file: No such file or
> >> directory". But I find libkaldi-base.so under /src/base.
> >>
> >> Could anyone tell me where & how to set the path for libkaldi-base.so?
> >>
> >> Thanks a lot!
> >>
> >> BRs
> >> Anne
> >>
> > --
> > Go to http://kaldi-asr.org/forums.html find out how to join
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "kaldi-help" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to kaldi-help+...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> Go to http://kaldi-asr.org/forums.html find out how to join
> --- 
> You received this message because you are subscribed to the Google Groups "kaldi-help" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages