我的 MAC 操作系统是 Yosemite 10.10,它有一个旧版本的 curl。我已经安装了 Xcode 和 Xcode 命令行工具。
I run cURL with the "sudo" command as “sudo curl”:
sudo curl
Password:
curl: try 'curl --help' or 'curl --manual' for more information
However, when I run curl under the common user in the the terminal, it failed as follows:
dyld: Library not loaded: /usr/lib/libcurl.4.dylib
Referenced from: /usr/bin/curl
Reason: Incompatible library version: curl requires version 7.0.0 or later, but libcurl.4.dylib provides version 5.0.0
Trace/BPT trap: 5
I also downloaded the …
Run Code Online (Sandbox Code Playgroud)