“Autoconf version 2.68 or higher is required”问题的解决

问题重现:


CentOS6系统,通过lnmp1.7升级php版本到7.3.22,然后安装memcached模块遇到该问题,错误提示如下:

configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

问题分析解决:


autoconf -V 命令行查看当前系统安装的版本为2.63,试试系统自动升级 yum update ,该软件没有进行升级,那么就只能手动下载源代码编译安装。既然要求最低版本为2.68,刚好网上找到了2.69版本的安装包,那就安装2.69。

[[email protected] lnmp1.7]$ wget -c ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz \
&& tar zxvf autoconf-2.69.tar.gz && cd autoconf-2.69 \
&& ./configure --prefix=/usr/ \
&& make && sudo make install

记得最后一个步骤需要root权限

当提示安装完成后,就可以再次用autoconf -V 命令查看是否安装成功。

[[email protected] lnmp1.7]$ autoconf -V
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

问题总结:


Linux系统安装或者更新软件时,碰到依赖组件缺失或者版本太低,可以先尝试用系统自动更新。如果问题依然存在,再根据错误提示信息,下载相应的软件包并手动编译安装,通常软件包都带有编译脚本。

参考文章:
https://blog.csdn.net/prettyshuang/article/details/51395095

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments