Re: [kaldi-help] Installing Kaldi without root privileges

470 views
Skip to first unread message

Jan Trmal

unread,
Oct 21, 2019, 9:51:27 AM10/21/19
to kaldi-help
you shouldn't need root at all -- all of our students can compile it without any issues with root access...
the error also does not suggest it should be a problem of having root access -- I'd delete the complete openfst-1.6.7 directory and run make in tools/ again.
y.  

On Mon, Oct 21, 2019 at 3:10 AM Tommi <inthe...@gmail.com> wrote:
Hello again, thank you for your last reply!
I am now trying to install Kaldi on an external server (using ssh), but I have no root privileges as it is a machine owned by my research institute. Is there a way to install Kaldi on this without root (mostly sudo) commands?
I have all the dependencies installed as my tools/extras/check_dependencies.sh doesn't complain.
However, when I try to make using 
make CXX=g++-4.8
I get the following error after a while.

/bin/bash ../../libtool  --tag=CXX   --mode=link g++-4.8  -std=c++11 -version-info 10:0:0  -o libfstscript.la -rpath /mnt/aoni04/inatomi/ResearchWorks/kaldi/tools/openfst-1.6.7/lib arciterator-class.lo arcsort.lo closure.lo compile.lo compose.lo concat.lo connect.lo convert.lo decode.lo determinize.lo difference.lo disambiguate.lo draw.lo encode.lo encodemapper-class.lo epsnormalize.lo equal.lo equivalent.lo fst-class.lo getters.lo info-impl.lo info.lo intersect.lo invert.lo isomorphic.lo map.lo minimize.lo print.lo project.lo prune.lo push.lo randequivalent.lo randgen.lo relabel.lo replace.lo reverse.lo reweight.lo rmepsilon.lo shortest-distance.lo shortest-path.lo stateiterator-class.lo synchronize.lo text-io.lo topsort.lo union.lo weight-class.lo verify.lo ../lib/libfst.la -lm -ldl -ldl
libtool: link: g++-4.8  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o  .libs/arciterator-class.o .libs/arcsort.o .libs/closure.o .libs/compile.o .libs/compose.o .libs/concat.o .libs/connect.o .libs/convert.o .libs/decode.o .libs/determinize.o .libs/difference.o .libs/disambiguate.o .libs/draw.o .libs/encode.o .libs/encodemapper-class.o .libs/epsnormalize.o .libs/equal.o .libs/equivalent.o .libs/fst-class.o .libs/getters.o .libs/info-impl.o .libs/info.o .libs/intersect.o .libs/invert.o .libs/isomorphic.o .libs/map.o .libs/minimize.o .libs/print.o .libs/project.o .libs/prune.o .libs/push.o .libs/randequivalent.o .libs/randgen.o .libs/relabel.o .libs/replace.o .libs/reverse.o .libs/reweight.o .libs/rmepsilon.o .libs/shortest-distance.o .libs/shortest-path.o .libs/stateiterator-class.o .libs/synchronize.o .libs/text-io.o .libs/topsort.o .libs/union.o .libs/weight-class.o .libs/verify.o   -Wl,-rpath -Wl,/mnt/aoni04/inatomi/ResearchWorks/kaldi/tools/openfst-1.6.7/src/lib/.libs -Wl,-rpath -Wl,/mnt/aoni04/inatomi/ResearchWorks/kaldi/tools/openfst-1.6.7/lib ../lib/.libs/libfst.so -ldl -L/usr/local/cuda-8.0/lib64/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/local/cuda-8.0/lib64 -L. -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o    -Wl,-soname -Wl,libfstscript.so.10 -o .libs/libfstscript.so.10.0.0
g++-4.8: error: .libs/info.o: No such file or directory

I get the feeling that openfst tries to mkdir in /usr/local/bin (which probably requires root privileges), but I don't know how I can work around it. I've already tried to install it through make command in tools/openfst-1.6.7 but similar errors occur.
I am using g++-4.8 for compiling.
Any help is appreciated!
Thank you in advance,

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/c70adc0d-a2d1-4144-997a-5aed12320c5b%40googlegroups.com.

reza ali

unread,
Oct 21, 2019, 3:32:12 PM10/21/19
to kaldi-help
Hi
1- I guest that g++ 4.8 is a little old, you can install locally newer g++ version and add it to PATH.
I think for training nnet models you must have up cuda 7 and it compiles by new g++.
However openfst 1.6.7 is ok with gcc>4.7
also you can install sox locally.

2- Jan Trmal, I think for extras/check_dependencies.sh can set
 a "mathlib" option that can set it optionally like configure in src.
Now In this extras/check_dependencies.sh, it checks only root mkl directory and get the error,


Kento Inatomi

unread,
Oct 21, 2019, 9:01:17 PM10/21/19
to kaldi...@googlegroups.com
Thank you both for the replies!
Fortunately I found out after a few hours(but not in the past few days before coming here for help!) that a fresh reinstall of Kaldi worked (According to Jan I guess deleting openfst was enough) so I pretty much deleted the post out of embarrassment. But thank you both for your quick and kind support!


2019年10月22日(火) 4:32 reza ali <aliiire...@gmail.com>:
--
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.
Reply all
Reply to author
Forward
0 new messages