使用自制软件 OSX 10.12.3 安装 wine 时 Libtiff 依赖失败
Libtiff dependancy fails when installing wine with homebrew OSX 10.12.3
我正在尝试通过自制软件安装 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$
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
取代。如果您比较这些文件,则会添加一个额外的 CVE 补丁。
要使用自制软件安装 wine,请修补 libtiff 公式以使用更新的 Debian 软件包:
打开/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
修补以下行,使其看起来像这样: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"
运行brew install wine
。 Homebrew 将自行更新并存储您的工作。
运行 cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/; git stash pop
运行 brew install wine
再一次。
我正在尝试通过自制软件安装 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$
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
取代。如果您比较这些文件,则会添加一个额外的 CVE 补丁。
要使用自制软件安装 wine,请修补 libtiff 公式以使用更新的 Debian 软件包:
打开
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
修补以下行,使其看起来像这样: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"
运行
brew install wine
。 Homebrew 将自行更新并存储您的工作。运行
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/; git stash pop
运行
brew install wine
再一次。