在mac终端中运行curl命令会出现以下错误:
dyld: Library not loaded: /usr/local/Cellar/curl/7.58.0/lib/libcurl.4.dylib
Referenced from: /usr/local/opt/curl/bin/curl
Reason: Incompatible library version: curl requires version 10.0.0 or later, but libcurl.4.dylib provides version 9.0.0
我试图添加bash_profile的路径它无法正常工作。如何在mac os中使curl工作?
答案 0 :(得分:1)
我遵循了Kamil.S评论的建议,并采取了一些措施来解决问题:
brew uninstall --force --ignore-dependencies curl
brew install curl
还必须重新安装事物,这取决于之后的curl(以前列为依赖于brew uninstall --force curl
的任何内容):
brew uninstall --force git
brew install git