Skip to content

How to enable PCRE2 when cargo installing rg? #2190

Answered by BurntSushi
jugmac00 asked this question in Q&A
Discussion options

You must be logged in to vote

cargo install ripgrep is just a shortcut for building the latest release of ripgrep from source. So the build instructions apply. Instead of running cargo build --release --features 'pcre2', you'd run cargo install --features 'pcre2'. (You don't need the --release flag since the install sub-command enables that automatically.)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@azzamsa
Comment options

@ltrzesniewski
Comment options

@azzamsa
Comment options

Answer selected by jugmac00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants