我正在尝试编译和构建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?我需要这个特定版本的汽车编译另一个包。
发布于 2021-04-20 12:50:20
您需要安装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请注意,在继续安装之前,您需要确保设置了路径。
发布于 2020-04-16 17:24:12
您可以从源代码构建Perl线程队列,并将其放入perl路径中。不需要集中安装。
发布于 2021-08-09 01:55:19
必须更改源代码,如automake-1.16/bin/automake.in +使用列表::Util ' reduce ';+sub none (&@) { my $code=shift;reduce{ $a &&!$ $_ ->(local$_= $b) } 1,@_;} https://github.com/Homebrew/linuxbrew-core/pull/6352/commits/dec6db52ad887a27210e0521a0bc5c271a7c9332
https://stackoverflow.com/questions/55716871
复制相似问题