我似乎收到了校验和错误,因为我是 macports 的新手,而且除了搜索和安装之外,对包管理器不是很熟悉。
我该如何解决这个问题?
---> Computing dependencies for ruby
---> Verifying checksum(s) for ruby
Error: Checksum (md5) mismatch for ruby-1.8.7-p334.tar.bz2
Error: Checksum (rmd160) mismatch for ruby-1.8.7-p334.tar.bz2
Error: Checksum (sha1) mismatch for ruby-1.8.7-p334.tar.bz2
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<http://trac.macports.org/wiki/MisbehavingServers>
***
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for ruby is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
答案1
校验和不匹配通常意味着上游改变了 tarball,这对于 Ruby 来说很常见,因为 Ruby 似乎鼓励开发人员远离“发布工程”的概念— 这个特性让我很难推荐 Ruby 在任何稳定的生产模型中。