【问题标题】:Libtiff dependancy fails when installing wine with homebrew OSX 10.12.3使用自制 OSX 10.12.3 安装 wine 时,Libtiff 依赖失败
【发布时间】:2017-06-14 13:51:13
【问题描述】:

我正在尝试通过自制软件安装 wine。安装依赖项时,libtiff 失败,因为找不到源包 url 并且整个安装程序退出。我单独安装了libtiff,然后尝试,仍然出现这个问题。任何解决方法?

Rangarajans-MBP:homebrew-core ranga$ brew install wine
==> Installing dependencies for wine: libtiff, gd, libgphoto2, little-cms2, cmake, jasper, libicns, makedepend, openssl, net-snmp, sane-backends, libtasn1, gmp, nettle, libunistring, libffi, p11-kit, gnutls
==> Installing wine dependency: libtiff
==> Using the sandbox
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libtiff--patch"
Download failed: https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz
Rangarajans-MBP:homebrew-core ranga$ 

【问题讨论】:

  • brew update 可能会解决问题。见github.com/Homebrew/homebrew-core/issues/3264
  • 是否进行了 brew update,brew cleanup,清除了缓存.. 仍然是同样的问题。在他们的 git 中发布了相同的内容。感谢您重定向那里
  • ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz 已替换为 ftp.debian.org/debian/pool/main /t/tiff/tiff_4.0.7-5.debian.tar.xz, brew update 在该引用更新之前将无法使用...

标签: macos homebrew wine libtiff


【解决方案1】:

ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.t‌​ar.xz 已被ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.t‌​ar.xz 取代。如果您比较文件,则会添加一个额外的 CVE 补丁。

要让自制软件安装 wine,修补 libtiff 公式以使用更新的 Debian 软件包:

  1. 打开/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb

  2. 修补以下行,使其看起来像这样:https://gist.github.com/georghendrik/c649b62c017c89980ec6fcad31513510

    • url "https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.tar.xz"

    • sha256 "f4183c48ed74b6c3c3a74ff1f10f0cf972d3dba0f840cf28b5a3f3846ceb2be6"

    • "patches/16-CVE-2016-10094.patch",(注意逗号)
    • "patches/17-CVE-2017-5225.patch"
  3. 运行brew install wine。 Homebrew 将自行更新并隐藏您的工作。

  4. 运行cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/; git stash pop

  5. 再次运行brew install wine

【讨论】:

  • 3. cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/; git commit -a 4. brew install wine
猜你喜欢
  • 2014-04-06
  • 1970-01-01
  • 2013-03-07
  • 1970-01-01
  • 2020-12-27
  • 1970-01-01
  • 1970-01-01
  • 2016-06-23
  • 1970-01-01
相关资源
最近更新 更多