【问题标题】:Unable to build GNU automake - help2man can't get `--help' info from automake-1.16无法构建 GNU automake - help2man 无法从 automake-1.16 获取 `--help' 信息
【发布时间】:2019-09-07 01:40:50
【问题描述】:

我正在尝试编译和构建 automake 1.16,但它以下列方式失败:

help2man: can't get `--help' info from automake-1.16
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.16.1] Error 255

我在 Stackoverflow 和 Github 上搜索并发现了类似的问题,解决方案是“yum install perl-Thread-Queue”

但我没有 root 访问权限。如何在不安装“perl-Thread-Queue”的情况下成功编译 automake?我需要这个特定版本的 automake 来编译另一个包。

【问题讨论】:

    标签: linux unix gnu automake


    【解决方案1】:

    必须修改像 automake-1.16/bin/automake.in 这样的源代码 +使用列表::Util 'reduce'; +sub none (&@) { 我的 $code=shift;减少 { $a && !$code->(local $_ = $b) } 1, @_; } https://github.com/Homebrew/linuxbrew-core/pull/6352/commits/dec6db52ad887a27210e0521a0bc5c271a7c9332

    【讨论】:

      【解决方案2】:

      您需要安装help2man 并获得Thread::Queue as described here。本质上:

      # help2man
      myprefix=$HOME/.hpc/help2man/1.48.3
      wget https://gnuftp.uib.no/help2man/help2man-1.48.3.tar.xz
      tar xfv help2man-1.48.3.tar.xz
      cd help2man-1.48.3
      ./configure --prefix=$myprefix   
      make -j$(nproc)
      make install
      

      您还需要安装perl 才能获得Thread::Queue

      curl -L https://raw.githubusercontent.com/ranguard/installing-perl/master/scripts/install_perl_on_nix.sh | bash
      cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
      cpanm Thread::Queue # For automake
      

      请注意,在继续安装之前,您需要确保已设置路径。

      【讨论】:

        【解决方案3】:

        您可以从源代码构建 perl 线程队列并将其放在您的 perl 路径中。无需集中安装。

        【讨论】:

          猜你喜欢
          • 2017-01-01
          • 1970-01-01
          • 2015-10-16
          • 1970-01-01
          • 2011-07-20
          • 2013-08-06
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多