OS X 10.9.2中的自制程序:错误:SHA256不匹配

Wil*_*Cat 5 shell homebrew

brew install php55
==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96
Actual: 0d9438c2557db5809f4232148ca1567516e7ece9bf8726853ceac4a111cb8690
Archive: /Library/Caches/Homebrew/php55-5.5.11
To retry an incomplete download, remove the file above.
Run Code Online (Sandbox Code Playgroud)

我试过了

brew cleanup && brew update

但没有奏效

ank*_*185 18

我也尝试过brew cleanup和brew update,但仍然遇到同样的问题,所以我这样做了

brew edit <application>
Run Code Online (Sandbox Code Playgroud)

并将 sha256 值替换为错误消息中显示的实际值。

这对我来说很有效,希望对你也有帮助。

  • @XelaVi 再次运行安装。 (2认同)

Jam*_*s N 7

我和MongoDb有同样的问题.我能够先修复它,然后将权限更改为admin.

然后我跑了

brew cleanup && brew update
Run Code Online (Sandbox Code Playgroud)

之后我跑了

brew install mongodb 
Run Code Online (Sandbox Code Playgroud)

它就像一个魅力


fir*_*lyu 1

有些人面临同样的问题。 https://github.com/Homebrew/homebrew-php/issues/875

“我检查了下载的文件,它是 html 下载页面,而不是 tarball。

看起来 php 现在希望 URL 的形式为http://www.php.net/get/php-5.4.22.tar.bz2/from/a/mirror而不是http://www.php .net/get/php-5.4.22.tar.bz2/from/this/mirror

编辑:我完全错了。from/this/mirror 是正确的,但它在 php 方面被破坏了。”