Linux-nbts

The way to learn Linux

lnmp 安装redis出现autoconf版本过低的问题

本来由于需要在lnmp的环境下新使用一个redis的功能,所以就进行了安装,后来提示出现了autoconf的版本过低的问题,导致无法进一步进行,后来自己进行了一部分的升级操作,问题得到解决。

查询autoconf当前版本的命令

[root@192 xxx]# rpm -qf /usr/bin/autoconf

卸载当前autoconf 版本

[root@192 xxx]# rpm -e --nodeps autoconf-2.59

下载安装最新autoconf 2.69版本

 下载地址 http://ftp.gnu.org/gnu/autoconf/
选择 autoconf-2.69.tar.gz 下载,或者其他你需要的版本。
[root@192 xxx]# tar -zxvf autoconf-2.69.tar.gz 
[root@192 xxx]# cd autoconf-2.69
[root@192 autoconf-2.69]# ./configure --prefix=/usr/
[root@192 autoconf-2.69]# make
[root@192 autoconf-2.69]# make install

查看当前autoconf版本

 /usr/bin/autoconf -V 或 rpm -qf /usr/bin/autoconf

[root@192 autoconf-2.69]#  /usr/bin/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.
[root@192 autoconf-2.69]#

以上内容转自
https://blog.csdn.net/a_little_a_day/article/details/78258622

点赞