尝试使用 brew install poppler
在M1上安装 poppler ;除 glib
外,所有依赖项都可以通过 curl 403错误
进行罚款。
“错误:poppler:无法下载资源“ glib”。
下载失败:
这很奇怪,因为我可以从链接中手动下载;不知道为什么要获得403。
确实找到了此线程: brew install失败了403未授权的失败
但是无法使用其解决方案,因为我无法禁用我的工作网络VPN。
还有其他方法可以解决吗?
如果没有,如何使用手动下载的依赖性安装brew安装软件包?
Trying to install poppler on m1 using brew install poppler
; all dependencies are downloaded fine apart from glib
which gave a curl 403 error
.
"Error: poppler: Failed to download resource "glib".
Download failed: https://download.gnome.org/sources/glib/2.72/glib-2.72.2.tar.xz"
This is odd as I can manually download from the link; not sure why got a 403.
Did find this thread: Brew install fails with 403 Unauthorized
but can't use its solution as I can't disable my work network vpn.
Any other way to get around this?
If not, how to install a package with brew using a manually downloaded dependency?
发布评论
评论(1)
不知道确切的原因,但我怀疑这是由于公司网络设置所致。
最后,我找到了一种解决此问题的方法,因为我可以手动下载GLIB源代码。然后使用
MV Glib -2.72.2.2.tar.xz $(brew -cache -s glib)
将其移动到自制缓存。然后安装poppler作为正常的EGbrew install install poppler
它将标记为已下载的glib。希望这对某人有帮助。
Don't know the exact reason but I suspect it's due to company network setting.
In the end I found a way to get around this since I can manually download glib source code. Then use
mv glib-2.72.2.tar.xz $(brew --cache -s glib)
to move it to the homebrew cache. Then install poppler as normal e.g.brew install poppler
it will mark glib as already downloaded.Hope this helps someone.