0
点赞
收藏
分享

微信扫一扫

automake1.14.1编译和问题解决help2man: can‘t get `--help‘

程序员阿狸 2022-03-16 阅读 135

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;

举报

相关推荐

0 条评论