Brew Install Poppler获得卷曲403

发布于 2025-02-11 06:04:18 字数 888 浏览 2 评论 0 原文

尝试使用 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞花火° 2025-02-18 06:04:18

不知道确切的原因,但我怀疑这是由于公司网络设置所致。

最后,我找到了一种解决此问题的方法,因为我可以手动下载GLIB源代码。然后使用 MV Glib -2.72.2.2.tar.xz $(brew -cache -s glib)将其移动到自制缓存。然后安装poppler作为正常的EG brew 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文