请问,为什么用Homebrew安装时(brew install imagemagick)一直出现截屏中的问题呢?

新手上路,请多包涵

brew install imagemagick
Installing dependencies for imagemagick: libpng, freetype, jpeg, libomp, libtiff, libtool, little-cms2, openjpeg, webp and xz
==> Installing imagemagick dependency: libpng
==> Downloading https://mirrors.ustc.edu.cn/h...

curl: (6) Could not resolve host: mirrors.ustc.edu.cn
Error: Failed to download resource "libpng"
Download failed: https://mirrors.ustc.edu.cn/h...
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sourceforge...

curl: (28) Resolving timed out after 5546 milliseconds
Trying a mirror...
==> Downloading https://sourceforge.mirrorser...

curl: (28) Resolving timed out after 5536 milliseconds
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "libpng"
Download failed: https://sourceforge.mirrorser...

阅读 4.2k
1 个回答
Could not resolve host: mirrors.ustc.edu.cn

要么是你 DNS 本地设置有问题, 要么是无法正常连到外网

推荐问题