我在使用brew在Mac OS X Yosemite上安装libpng时遇到问题。
输出如下:
brew install libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.16.yosemite.bottle.tar.gz
######################################################################## 100,0%
Error: SHA1 mismatch
Expected: f7b47fcf9d4111075745b04b6fbdb63062982bca
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/libpng-1.6.16.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz
######################################################################## 100,0%
Error: SHA1 mismatch
Expected: 31855a8438ae795d249574b0da15b34eb0922e13
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/libpng-1.6.16.tar.xz
To retry an incomplete download, remove the file above.
我认为这个输出非常奇怪,因为SHA1 Hash对于两个不同的文件是相同的。 我该如何解决这个问题?
答案 0 :(得分:1)
Sourforge目前处于灾难模式......文件brew下载可能包含以下内容:
<html><head>
<title>Testing</title>
<!-- <script src="/js/jquery.com/jquery-1.11.0.min.js"></script> -->
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//sourceforge.net/js/mirrors.js"></script>
<script src="/js/sf.js"></script>
<script>
var DR_loc = DR_parse_hash_url();
if (DR_loc) {
DR_sf_main(DR_loc);
} else {
window.location.href = 'http://sourceforge.net/home.html';
}
</script>
</head><body>
<noscript>
We're sorry -- the Sourceforge site is currently in Disaster Recovery mode, and currently requires
the use of javascript to function. Please check back later.
</noscript>
</body></html>