How to enable PCRE2 when cargo installing rg? #2190
-
AFAIR I did
When I try to use rg with pcre...
When googling the error message I found your faq entry
What would I need to do to get pcre support? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
cargo install ripgrep
is just a shortcut for building the latest release of ripgrep from source. So the build instructions apply. Instead of runningcargo build --release --features 'pcre2'
, you'd runcargo install --features 'pcre2'
. (You don't need the--release
flag since theinstall
sub-command enables that automatically.)