jq fails with:
$ jq
C:/cygwin64/bin/jq.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
How can I find out which libary was missing?
On
While Ole answer is correct, a more fast solution is to use cygcheck.
$ cygcheck jq |grep -iv system32
cygcheck: track_down: could not find cygonig-5.dll
Found: C:\cygwin64\bin\jq.exe
C:\cygwin64\bin\jq.exe
C:\cygwin64\bin\cygjq-1.dll
C:\cygwin64\bin\cygwin1.dll
Cygcheck will also help to find the proper package to install
$ cygcheck -p cygonig-5.dll
Found 6 matches for cygonig-5.dll
libonig5-6.9.1-1 - libonig5: Oniguruma regular expressions library (runtime)
libonig5-6.9.4-1 - libonig5: Oniguruma regular expressions library (runtime)
libonig5-6.9.9-1 - libonig5: Regular expressions library (runtime)
...
My general recommendation is to install any Cygwin package using its own setup
https://cygwin.com/setup-x86_64.exe
in this way all the dependencies are properly managed.
Try
strace jq:Finally you get a dialog box that says:
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=cygoni tells you that this is probably in libonig5, so:
And now
jqworks.