centos7.6系统安装jq1.6

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7.6系统安装jq1.6相关的知识,希望对你有一定的参考价值。

环境:centos7.6 x86_64位 最小化安装

下载包,编译安装

wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz
tar xf jq-1.6.tar.gz
cd jq-1.6
./configure 

提示:
此处编译安装一直提示:
still complains about this using "configure":
=== configuring in modules/oniguruma (/root/jq-1.6/modules/oniguruma)
configure: WARNING: no configuration information is in modules/oniguruma
如果继续往下make会报错,

解决办法:

[root@mysql-redis jq-1.6]# autoreconf -fi 
libtoolize: putting auxiliary files in `.‘.
libtoolize: copying file `./ltmain.sh‘
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4‘.
libtoolize: copying file `m4/libtool.m4‘
libtoolize: copying file `m4/ltoptions.m4‘
libtoolize: copying file `m4/ltsugar.m4‘
libtoolize: copying file `m4/ltversion.m4‘
libtoolize: copying file `m4/lt~obsolete.m4‘
configure.ac:6: error: require Automake 1.14, but have 1.13.4
autoreconf: automake failed with exit status: 1

但是报错如下:
configure.ac:6: error: require Automake 1.14, but have 1.13.4

于是下载:

http://ftp.gnu.org/gnu/automake/automake-1.14.tar.xz
tar -xJvf automake-1.14.tar.xz
cd automake-1.14 
./configure
make && make install

继续如下:


[root@mysql-redis jq-1.6]# autoreconf -fi 
libtoolize: putting auxiliary files in `.‘.
libtoolize: copying file `./ltmain.sh‘
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4‘.
libtoolize: copying file `m4/libtool.m4‘
libtoolize: copying file `m4/ltoptions.m4‘
libtoolize: copying file `m4/ltsugar.m4‘
libtoolize: copying file `m4/ltversion.m4‘
libtoolize: copying file `m4/lt~obsolete.m4‘
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config‘.
libtoolize: copying file `config/ltmain.sh‘
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config/m4‘.
libtoolize: copying file `config/m4/libtool.m4‘
libtoolize: copying file `config/m4/ltoptions.m4‘
libtoolize: copying file `config/m4/ltsugar.m4‘
libtoolize: copying file `config/m4/ltversion.m4‘
libtoolize: copying file `config/m4/lt~obsolete.m4‘

采用如下方式再次编译,可以成功解决报错:

[root@mysql-redis39 jq-1.6]# ./configure   --disable-maintainer-mode
[root@mysql-redis39 jq-1.6]# make
[root@mysql-redis39 jq-1.6]# echo $?
[root@mysql-redis39 jq-1.6]# make install

验证安装:

[root@mysql-redis ~]# /usr/local/bin/jq -V
jq-1.6

参考文档
https://github.com/stedolan/jq/issues/1930

以上是关于centos7.6系统安装jq1.6的主要内容,如果未能解决你的问题,请参考以下文章

.Net Core部署Linux系统(CentOS7.6)

安装Centos7.6操作系统

制作linux系统U盘并使用U盘安装CentOS7.6系统

Centos7.6安装过程

VMware16安装CentOS7.6虚拟机

VMware16安装CentOS7.6虚拟机