Centos7离线安装autoconf

1. 安装步骤

1.1 安装M4

下载: http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
拷贝到centos系统上,并解压:

tar -xzvf m4-1.4.13.tar.gz

到解压目录中:

cd m4-1.4.13
# 配置编译环境
./configure –prefix=/usr/local
# 编译并安装
make && make install

1.2 安装perl的依赖包 perl-Data-Dumper

确保已经安装了perl:

perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 39 registered patches, see perl -V for more detail)

包页面:https://centos.pkgs.org/7/centos-aarch64/perl-Data-Dumper-2.145-3.el7.aarch64.rpm.html
跳到下载页面:http://rpmfind.net/linux/rpm2html/search.php?query=perl-Data-Dumper(x86-64)
选中centos7 对应版本,并下载:perl-Data-Dumper-2.145-3.el7.x86_64.rpm

网址不错,可以搜索下载其他各种包

解压,进入目录安装:

$ rpm  -ivh  perl-Data-Dumper-2.145-3.el7.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:perl-Data-Dumper-2.145-3.el7     ################################# [100%]

1.3 安装autoconf

下载 http://ftp.gnu.org/gnu/autoconf/
选择 autoconf-2.65.tar.gz版本

$ tar -xzvf autoconf-2.65.tar.gz
$  cd autoconf-2.65 
$  ./configure –prefix=/usr/local
$   make && make install

2. 安装过程

首先执行1.3步骤,安装autoconf,安装autoconf插件时,又提示缺少什么M4。
在这里插入图片描述
因此先安装m4,重新安装autoconf时报:

BEGIN failed--compilation aborted at ../bin/autom4te line 38

在这里插入图片描述
经过一番查找知道这个问题是缺乏perl环境,但是我通过perl -v 命令发现我的系统已经安装了perl环境。正好遇到了这个博客知道,应该是少了一个perl的模块,而不是像网上说的缺少环境:
在这里插入图片描述

安装上perl-data-dunmper模块之后,重新编译autoconf成功通过

参考

Centos7安装autoconf

  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值