Describe the bug
download jq-linux64
To Reproduce
run it in RHEL 7
get the following:
[root@sowlx212 ~]# echo '["a","b","c","d","e"]' | jq '.[2:4]'
FATAL: kernel too old
Expected behavior
NA
Environment (please complete the following information):
Additional context
NA
How did you get your jq binary? That error typically indicates that the statically linked glibc doesn't like your kernel version. The binary releases we produce are statically linked, so they can be easily used.
I'll point out that RHEL7 is based off of linux kernel 3.10+. RHEL hasn't been based on 2.6.9 since RHEL4, which matches your lsb_release -d output (Nahant was RHEL4's codename). The way RHEL handles updates like this involves leaving the base kernel version alone and backporting features.
If possible, try install jq using your package manager (which will get you a dynamically-linked version). Otherwise, I'd recommend compiling jq from source, which should also create a dynamically-linked version.
What @wtlangford said. The binaries we provide are a courtesy. If they don't work for you, or if we don't provide a binary for your choice of platform, then you must either install from your operating system's package repository, from something like Brew, or build from source.
This thread is consistent, not a bug. I had the same problem described here fixed after downloading an older version for older kernel.
Most helpful comment
How did you get your
jqbinary? That error typically indicates that the statically linked glibc doesn't like your kernel version. The binary releases we produce are statically linked, so they can be easily used.I'll point out that RHEL7 is based off of linux kernel 3.10+. RHEL hasn't been based on 2.6.9 since RHEL4, which matches your
lsb_release -doutput (Nahant was RHEL4's codename). The way RHEL handles updates like this involves leaving the base kernel version alone and backporting features.If possible, try install jq using your package manager (which will get you a dynamically-linked version). Otherwise, I'd recommend compiling jq from source, which should also create a dynamically-linked version.