homebrew - 无法在 mac os yosemite 中通过 brew 链接 PCRE

标签 homebrew react-native watchman

当我使用brew install watchman安装watchman时,出现了错误:在安装watchman之前必须brew link pcre。所以我尝试了 brew link pcrebrew link --overwrite pcre,我刚刚得到 正在链接/usr/local/Cellar/pcre/8.36... 错误:无法符号链接(symbolic link) share/man/man3/pcre.3 /usr/local/share/man/man3 不可写。

有人可以帮忙吗?

最佳答案

根据设计,Homebrew (brew) 要求 /usr/local 的内容归您所有。您可以通过运行轻松修复它:

sudo chown -R `whoami` /usr/local

从您的终端。

参见here以获得进一步的解释。

关于homebrew - 无法在 mac os yosemite 中通过 brew 链接 PCRE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29319378/

相关文章:

javascript - 如何动态创建和链接 fetch api 调用?

css - 将文本框放在图像顶部

reactjs - 命令 `brew install watchman` 运行 `chmod` 但最终安装失败

python - 安装 Watchman 时找不到 "Python.h"文件

java - 为什么我的 Java 版本不同?

mysql - 如何在 Mavericks/Mac (10.9.2) 上正确安装 MySQL?

python - 查找 Homebrew 安装的 Python 路径

macos - Mac OS 10.16 链接 Homebrew 安装的库

java - React Native Amplify AWS 包与 firebase 冲突

react-native - react native watchmanResponse无法解析root