Centos7安装autoconf常见错误解决办法

Centos7安装autoconf常见错误解决办法

【源码安装autoconf请参考】

SUSE11 SP3系统源码升级安装automake:https://blog.csdn.net/qian_feifei/article/details/82502116

【常见错误】

1、编译autoconf-2.69报告错误

Can’t locate Data/Dumper.pm in @INC
src/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ../lib/Autom4te/C4che.pm line 35.
BEGIN failed--compilation aborted at ../lib/Autom4te/C4che.pm line 35.
Compilation failed in require at ../bin/autom4te line 39.
BEGIN failed--compilation aborted at ../bin/autom4te line 39.
make[1]: *** [autoconf.in] Error 2
解决办法

安装perl环境

yum install perl

2、编译automake-1.15.1报告错误

help2man: can't get `--help' info from automake-1.15 Try `--no-discard-stderr' if option outputs to stderr Makefile:3687: recipe for target 'doc/automake-1.15.1' failed

解决办法

修改Makefile源代码

添加--no-discard-stderr 选项为:

重新编译,通过

3、automake --version命令报告错误

Can't locate Thread/Queue.pm in @INC (@INC contains: /usr/share/automake-1.15 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/automake line 55.
BEGIN failed--compilation aborted at /usr/bin/automake line 58.

解决办法

缺少perl环境依赖 “perl-Thread-Queue”,下载并安装 yum install perl-Thread-Queue

再次运行automake --version正常。

猜你喜欢

转载自blog.csdn.net/qian_feifei/article/details/83958394