MAC brew下载报错
· 阅读需 2 分钟
MAC brew下载报错
编译 wget 报错
configure: error: in `/Users/macbook/Software/wget-1.21.2':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
尝试下载相关依赖,和使用--with=openssl 都没有解决
解决方案
# 更换 brew 源,将 brew 默认的 github 源更换为阿里源解决: