Facing issue when installing jq on centos
When installing jq on centos I am having a problem. I ran the following commands:
yum groupinstall "Development Tools"
yum install autoconf automake libtool python
after that i used pip install jq
and i ran into error like this:
jq.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-akuaZu/jq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read ().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
instal --record /tmp/pip-04CW9h-record/install-record.txt --single-version-externally
-managed --compile" failed with error code 1 in /tmp/pip-build-akuaZu/jq/
Can anyone help me?
+3
rishabhjitani
source
to share
2 answers
Just in case anyone is looking for another solution.
This is how I installed on Cent OS 7 and it worked. Make sure you have sudo privilege .
Installer solution
yum install epel-release -y
yum install jq -y
jq --version
the output was jq-1.5
Link
+12
Santosh kumar a
source
to share
This is how I installed it on CentOS 7:
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O jq
chmod +x jq
Then
mv jq /usr/local/bin
+3
hmedia1
source
to share