在 macOS 上使用 wget
下载文件时,如果你遇到如下致命错误:
dyld[70620]: Library not loaded: /usr/local/opt/libunistring/lib/libunistring.2.dylib
Reason: tried: … (no such file)
[1] 70620 abort wget https://developers.google.com/search/apis/ipranges/googlebot.json
别慌,这其实是一个非常常见的问题,源于系统更新或 Homebrew 变更后,wget
找不到它依赖的某个动态链接库。今天就来手把手教你如何优雅解决。