1、查看当前系统是否安装了automake,如果安装了则需要查看automake的版本,Ubuntu16.04版本默认是automake1-15;
2、安装automake1-14
从官网下载http://ftp.gnu.org/gnu/automake,automake-1.14.1.tar.gz版本;
当然也可以使用命令:wget http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz
然后基本上是linux下软件安装的一般步骤:
tar -xvf automake-1.14.1.tar.gz
cd automake-1.14.1
./configure
make
sudo make install
3、查看安装是否成功
键入automake然后敲Tab,就可以看到可以使用的automake版本了;
问题:
GEN doc/automake-1.14.1
help2man: can't get `--help' info from automake-1.14
Try `--no-discard-stderr' if option outputs to stderr
Makefile:3707: recipe for target 'doc/automake-1.14.1' failed
make: *** [doc/automake-1.14.1] Error 255
解决:
在Makefile:3707: 修改 添加 `--no-discard-stderr'
执行时报错
automake-1.14 -v
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake-1.14 line 3930.
修改“/usr/local/bin/automake-1.14 ”的第3930行。多加了[]
$text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;