如何在带有自制软件的OSX上安装具有PCRE支持的Git? [英] How to install Git with PCRE support on OSX with homebrew?

查看:116
本文介绍了如何在带有自制软件的OSX上安装具有PCRE支持的Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑步时

$ git grep -P "<pattern>"

我收到以下错误:

fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE

如何正确安装具有OSX的PCRE支持的Git?

How can I install Git with PCRE support for OSX properly?

推荐答案

使用自制软件,只需使用

With homebrew, just use

brew reinstall --with-pcre2 git

它会强制从源代码构建git而不是下载瓶子,但要确保更新将在pcre支持下完成.

It forces to build git from source instead of downloading the bottle, but ensures that the updates will be done with the pcre support.

这篇关于如何在带有自制软件的OSX上安装具有PCRE支持的Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆