./configure、エラー:install-sh、install.sh、またはshtoolが見つかりません



Configure Error Cannot Find Install Sh



Kaldiのサンプルタイミングをテストするときは、irstlm(extras / install_irstlm.sh)をインストールする必要があり、Makefileの生成は失敗します。

./configure、エラー:install-sh、install.sh、またはshtoolが見つかりません......



そして、automakeの3936行エラー:

subsubstitute_ac_subst_variables
{{
私の($ text)= @_
$ text = 〜s / $ {([^ t =:+ {}] +)} / substitute_ac_subst_variables_worker($ 1)/ ge
$ textを返す
}



私はついにこれがすべてアップグレードによって引き起こされたことを知りました:私はすべてを最新の状態に保つのが好きです


私のperlがperl5.26にアップグレードされたため、automakeはまだautomake-1.11でスタックし、最新のものはautomake-1.15に達しました。



autoconfとautomakeのアップグレードを続けてください! ! !


上記の順序に注意してください。

1、autoconf-2.69

wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz

tar xf autoconf-2.69.tar.xz

cd autoconf-2.69

./configure --prefix = / usr

make&make install

2、automake-1.15

wget ftp://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz

tar xf automake-1.15.tar.xz

cd automake-1.15

./configure --prefix = / usr

make&make install


バージョンを確認してください:

[root@xxxxx tools]$ autoconf --version autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later , This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille.
[root@xxxxx tools]$ automake --version automake (GNU automake) 1.15.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey and Alexandre Duret-Lutz .
IRSTLMを再インストールします[root@xxxxx tools]$ extras/install_irstlm.sh ...... libtool: install: /usr/bin/install -c dict /home/houwenbin/kaldi-master/tools/irstlm/bin/dict libtool: install: /usr/bin/install -c ngt /home/houwenbin/kaldi-master/tools/irstlm/bin/ngt libtool: install: /usr/bin/install -c dtsel /home/houwenbin/kaldi-master/tools/irstlm/bin/dtsel libtool: install: /usr/bin/install -c compile-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/compile-lm libtool: install: /usr/bin/install -c interpolate-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/interpolate-lm libtool: install: /usr/bin/install -c prune-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/prune-lm libtool: install: /usr/bin/install -c quantize-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/quantize-lm libtool: install: /usr/bin/install -c prune-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/prune-lm libtool: install: /usr/bin/install -c score-lm /home/houwenbin/kaldi-master/tools/irstlm/bin/score-lm libtool: install: /usr/bin/install -c tlm /home/houwenbin/kaldi-master/tools/irstlm/bin/tlm libtool: install: /usr/bin/install -c plsa /home/houwenbin/kaldi-master/tools/irstlm/bin/plsa libtool: install: /usr/bin/install -c verify-caching /home/houwenbin/kaldi-master/tools/irstlm/bin/verify-caching libtool: install: /usr/bin/install -c cswa /home/houwenbin/kaldi-master/tools/irstlm/bin/cswa /bin/mkdir -p '/home/houwenbin/kaldi-master/tools/irstlm/include' /usr/bin/install -c -m 644 cmd.h thpool.h dictionary.h gzfilebuf.h htable.h index.h lmContainer.h lmclass.h lmmacro.h lmtable.h lmInterpolation.h mempool.h mfstream.h n_gram.h ngramcache.h ngramtable.h timer.h util.h crc.h interplm.h linearlm.h mdiadapt.h mixture.h normcache.h shiftlm.h cplsa.h cswam.h doc.h '/home/houwenbin/kaldi-master/tools/irstlm/include' make[2]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/src' make[1]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/src' Making install in scripts make[1]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm/scripts' make[2]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm/scripts' make[2]: Nothing to be done for `install-exec-am'. /bin/mkdir -p '/home/houwenbin/kaldi-master/tools/irstlm/bin' /usr/bin/install -c add-start-end.sh build-lm-qsub.sh build-lm.sh rm-start-end.sh split-ngt.sh mdtsel.sh build-sublm.pl goograms2ngrams.pl lm-stat.pl merge-sublm.pl ngram-split.pl sort-lm.pl split-dict.pl plsa.sh '/home/houwenbin/kaldi-master/tools/irstlm/bin' make[2]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/scripts' make[1]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/scripts' Making install in doc make[1]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm/doc' make[2]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm/doc' make[2]: Nothing to be done for `install-exec-am'. make[2]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/doc' make[1]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm/doc' make[1]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm' make[2]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm' make install-exec-hook make[3]: Entering directory `/home/houwenbin/kaldi-master/tools/irstlm' cd /home/houwenbin/kaldi-master/tools/irstlm/ && ln -s -n -f lib lib64 make[3]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm' make[1]: Leaving directory `/home/houwenbin/kaldi-master/tools/irstlm' ***() Installation of IRSTLM finished successfully ***() Please source the tools/extras/env.sh in your path.sh to enable it