shell – OS X 10.9.2中的Homebrew:错误:SHA256不匹配

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.

我试过了

brew cleanup && brew update

但没有奏效

解决方法

有些人面临同样的问题.
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的一边被淹没了.“

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...