How to install / enable pcregrep on Cygwin?

I am trying to use pcregrep as indicated in the top answer of this SO question on Cygwin. My Win7 64bit environment runs Cygwin V 1.7.20 (0.266 / 5/3).

Using cygcheck -p pcregrep, I get:

Found 6 matches for pcregrep
libpcre-devel-8.37-1 - libpcre-devel: Perl Compatible Regular Expressions library development (installed binaries and support files)
libpcre-devel-8.37-2 - libpcre-devel: Perl Compatible Regular Expressions library development (installed binaries and support files)
pcre-debuginfo-8.37-1 - pcre-debuginfo: Debug info for pcre (installed binaries and support files)
pcre-debuginfo-8.37-2 - pcre-debuginfo: Debug info for pcre (installed binaries and support files)
pcre-8.37-1 - pcre: Perl Compatible Regular Expressions utilities (installed binaries and support files)
pcre-8.37-2 - pcre: Perl Compatible Regular Expressions utilities (installed binaries and support files)

I tried using the pcregrep installation instructions found in this tutorial , but patchit doesn't seem to be part of the cygwin installation. This tutorial was found through these two SO questions on the same lines as mine: SO Question 1 and SO Question 2 , referring to them so that they appear in the related questions section. This man page shows that it can exist in cygwin, but trying to launch a man page for it results in:

$ man pcregrep
No manual entry for pcregrep

It seems that pcregrep libraries exist in my cygwin installation, but I don't know how to compile / extract / enable them in order to access the utility. When I try to run it, I get the standard command not found answer from bash:

$ pcregrep
-bash: pcregrep: command not found

, : cygwin, pcregrep?

, , , , , , , ( , ). , pcregrep ( ), .

+4
1

cygcheck -p , pcregrep . - , pcre pcregrep.exe: .

Cygwin, setup-x86.exe ( 32- Cygwin) setup-x86_64.exe ( 64- Cygwin), , , Cygwin, : " ", pcre "", "" . , https://cygwin.com/.

+2

Source: https://habr.com/ru/post/1613673/


All Articles