jq: Unknown option -rcC
Closed this issue · 10 comments
Doesn't work for me:
user@ts:~/ban-segshit8x-nodes$ ./ban.sh
--2017-10-20 07:21:21-- https://bitnodes.21.co/api/v1/snapshots/1508498171/
Resolving bitnodes.21.co (bitnodes.21.co)... 104.20.113.31, 104.20.112.31, 2400:cb00:2048:1::6814:711f, ...
Connecting to bitnodes.21.co (bitnodes.21.co)|104.20.113.31|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘/tmp/segshit-nodes.txt’
/tmp/segshit-nodes.txt [ <=> ] 1.78M --.-KB/s in 0.07s
2017-10-20 07:21:21 (26.5 MB/s) - ‘/tmp/segshit-nodes.txt’ saved [1868885]
jq: Unknown option -rcC
Use jq --help for help with command-line options,
or see the jq documentation at http://stedolan.github.com/jq
Found and banned 0 nodes.
user@ts:~/ban-segshit8x-nodes$ jq --version
jq-1.4-1-e73951f
user@ts:~/ban-segshit8x-nodes$ cat /etc/debian_version
8.9
Same here
jq version 1.3
Here's the fix your older ubuntu
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
chmod +x jq-linux64
sudo mv jq-linux64 $(which jq)
@lichtamberg please have a look at @BitPopCoin's solution.
@BitPopCoin's solution didn't work for me. My fullnode is running on a Raspberry Pi 3 w/(jessie).
Thanks, @BitPopCoin 's solution fixed it for me.
@aybase Indeed the binary is for X86 architecture.
On your rpi3, do the following:
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
tar -zxf jq-1.5.tar.gz
cd jq-1.5
./configure && make && sudo make install
then the script shell should run perfect :)
Thanks @TamtamHero, You're the best!
You shouldn't download and run random binaries from the Internet. I found a fix. Expect a PR soon.
Done. I've also created 2 other PRs improving other things (they can be discussed separately).