./configure时,error: cannot find install-sh, install.sh, or shtool解决方法
2017-11-27 15:01
2411 查看
在测试kaldi例子timit时,需要安装irstlm(extras/install_irstlm.sh)出现Makefile生成失败问题:
./configure时,error: cannot find install-sh, install.sh, or shtool......
以及,automake的3936行错误:
sub substitute_ac_subst_variables
{
my ($text) = @_;
$text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
return $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
查看一下版本:
再次安装IRSTLM
./configure时,error: cannot find install-sh, install.sh, or shtool......
以及,automake的3936行错误:
sub substitute_ac_subst_variables
{
my ($text) = @_;
$text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
return $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
查看一下版本:
[houwenbin@localhost tools]$ autoconf --version autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> 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.
[houwenbin@localhost tools]$ automake --version automake (GNU automake) 1.15.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> 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 <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>.
再次安装IRSTLM
[houwenbin@localhost 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
相关文章推荐
- libssh2编译错误(configure error: cannot find OpenSSL or Libgcrypt)解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- brew安装php70出现configure: error: Cannot find libz 错误解决方法
- easy_install 错误Setup script exited with error: Unable to find vcvarsall.bat解决方法
- configure: error: cannot guess build type; you must specify one解决方法
- configure: error: cannot run /bin/sh ./config.sub解决办法
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- 源码安装ruby时 ERROR: Loading command: install (LoadError) cannot load such file -- zlib 解决方法
- 解决configure: error: Cannot find the WebServer
- configure: error: cannot run /bin/sh ./config.sub解决办法
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- configure: error: Cannot locate header file libintl.h 错误的解决方法
- checking size of char… configure: error: cannot compute sizeof (char) 解决方法
- easy_install和pip安装模块,提示error: Unable to find vcvarsall.bat的解决方法
- vs2005部署错误解决方法:ASPNETMERGE : error 1013: Cannot find any assemblies that can be merged in the application bin folder.
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- php 安装 configure: error: Cannot find libmysqlclient under /usr. 解决
- configure: error: Cannot find libmysqlclient under /usr 解决