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
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的一边被淹没了.“