curl 在 Mac OS 上给出错误

curl gives an ERROR on Mac OS

当 运行 通过终端卷曲时,出现以下错误:

dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
  Referenced from: /opt/local/bin/curl
  Reason: image not found
Abort trap: 6

我安装了最新版本的 Xcode 甚至 "brew install curl" 但都没有用。有什么想法吗??

(OS 塞拉利昂)

问题是安装的curl版本不完整。它似乎是从 MacPorts 安装的,因为 /opt/local/bin/curl 是它的正常安装位置。

原生 Apple 版本在 /usr/bin

您可以卸载或重新安装 MacPorts 版本:

sudo port install curl

或卸载

sudo port uninstall curl 

MacPorts Common Tasks