ldi*_*ual 8 git macos homebrew pcre
我跑的时候
$ git grep -P "<pattern>"
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE
Run Code Online (Sandbox Code Playgroud)
如何正确安装GIT并支持OSX的PCRE?
Gaë*_*ann 24
使用自制软件,只需使用即可
brew reinstall --with-pcre2 git
Run Code Online (Sandbox Code Playgroud)
它强制从源代码构建git而不是下载瓶子,但确保更新将通过pcre支持完成.
Homebrew默认使用预制版本(瓶子)运送Git.您需要从源代码编译Git以启用PCRE支持:
$ brew install pcre
$ export USE_LIBPCRE=yes
$ brew reinstall --build-from-source git
Run Code Online (Sandbox Code Playgroud)
现在它应该按预期工作.