Error: You must `brew link pcre openresty-openssl` before homebrew/nginx/openresty can be installed

Posted 喜狼狼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: You must `brew link pcre openresty-openssl` before homebrew/nginx/openresty can be installed相关的知识,希望对你有一定的参考价值。

xilanglangdeMacBook-Pro:pcre xinshaofeng$ brew link pcre

Linking /usr/local/Cellar/pcre/8.40... 

Error: Could not symlink bin/pcre-config

Target /usr/local/bin/pcre-config

is a symlink belonging to pcre. You can unlink it:

  brew unlink pcre

 

To force the link and overwrite all conflicting files:

  brew link --overwrite pcre

 

To list all files that would be deleted:

  brew link --overwrite --dry-run pcre

xilanglangdeMacBook-Pro:pcre xinshaofeng$ brew link --overwrite pcre

Linking /usr/local/Cellar/pcre/8.40... 261 symlinks created

 

xilanglangdeMacBook-Pro:pcre xinshaofeng$ brew link openresty-openssl

Linking /usr/local/Cellar/openresty-openssl/1.0.2k... 89 symlinks created

xilanglangdeMacBook-Pro:pcre xinshaofeng$ brew install homebrew/nginx/openresty

以上是关于Error: You must `brew link pcre openresty-openssl` before homebrew/nginx/openresty can be installed的主要内容,如果未能解决你的问题,请参考以下文章