<div>Hi,everybody!</div><div>&nbsp; &nbsp; I failure to install opam for my macbook(osx 10.8.5 mountain lion)with macport. Even after that I have cleaned the re2c which leads to the error and reinstall opam again,the error still exists.What makes the installation fail?And how could I fix it?</div><div>here is <u>the terminal's message and the log of the port</u>:</div><div><div><b>The terminal:</b></div><div>$ &nbsp;sudo port clean re2c</div><div>---&gt; &nbsp;Cleaning re2c</div><div>$ sudo port install opam</div><div>---&gt; &nbsp;Computing dependencies for opam</div><div>---&gt; &nbsp;Dependencies to be installed: aspcud gringo re2c scons</div><div>---&gt; &nbsp;Fetching archive for re2c</div><div>Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: &lt;https://trac.macports.org/wiki/MisbehavingServers&gt;</div><div>---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/re2c</div><div>---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/re2c</div><div>---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/re2c</div><div>&nbsp; &nbsp; &nbsp; [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] &nbsp; 0.0 % &nbsp; &nbsp; &nbsp; &nbsp;speed: 0 B/s &nbsp; &nbsp; &nbsp; &nbsp;---&gt; &nbsp;Fetching distfiles for re2c</div><div>---&gt; &nbsp;Attempting to fetch re2c-0.14.3.tar.gz from http://aarnet.dl.sourceforge.net/re2c</div><div>---&gt; &nbsp;Verifying checksums for re2c</div><div>Error: Checksum (rmd160) mismatch for re2c-0.14.3.tar.gz</div><div>Error: Checksum (sha256) mismatch for re2c-0.14.3.tar.gz</div><div>***</div><div>The non-matching file appears to be HTML. See this page for possible reasons</div><div>for the checksum mismatch:</div><div>&lt;https://trac.macports.org/wiki/MisbehavingServers&gt;</div><div>***</div><div>The file has been moved to: /opt/local/var/macports/distfiles/re2c/re2c-0.14.3.tar.gz.html</div><div>Error: org.macports.checksum for port re2c returned: Unable to verify file checksums</div><div>Error: Failed to install re2c</div><div>Please see the log file for port re2c for details:</div><div>&nbsp; &nbsp; /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2c/re2c/main.log</div><div>Error: The following dependencies were not installed: aspcud gringo re2c scons</div><div>To report a bug, follow the instructions in the guide:</div><div>&nbsp; &nbsp; http://guide.macports.org/#project.tickets</div><div>Error: Processing of port opam failed</div><div><br></div><div><b>The log:</b></div><div><div>:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2c/re2c/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/re2c/work</div><div>:debug:main changing euid/egid - current euid: 0 - current egid: 0</div><div>:debug:main egid changed to: 501</div><div>:debug:main euid changed to: 502</div><div>:debug:main Executing org.macports.main (re2c)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:archivefetch archivefetch phase started at Sat Sep 19 07:17:43 CST 2015</div><div>:msg:archivefetch ---&gt; &nbsp;Fetching archive for re2c</div><div>:warn:archivefetch Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: &lt;https://trac.macports.org/wiki/MisbehavingServers&gt;</div><div>:debug:archivefetch Executing org.macports.archivefetch (re2c)</div><div>:debug:archivefetch euid/egid changed to: 0/0</div><div>:debug:archivefetch chowned /opt/local/var/macports/incoming to macports</div><div>:debug:archivefetch euid/egid changed to: 502/501</div><div>:info:archivefetch ---&gt; &nbsp;re2c-0.14.3_0.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified</div><div>:msg:archivefetch ---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/re2c</div><div>:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404</div><div>:msg:archivefetch ---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/re2c</div><div>:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404</div><div>:msg:archivefetch ---&gt; &nbsp;Attempting to fetch re2c-0.14.3_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/re2c</div><div>:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404</div><div>:debug:archivefetch Privilege de-escalation not attempted as not running as root.</div><div>:debug:fetch fetch phase started at Sat Sep 19 07:17:45 CST 2015</div><div>:notice:fetch ---&gt; &nbsp;Fetching distfiles for re2c</div><div>:debug:fetch Executing org.macports.fetch (re2c)</div><div>:info:fetch ---&gt; &nbsp;re2c-0.14.3.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/re2c</div><div>:notice:fetch ---&gt; &nbsp;Attempting to fetch re2c-0.14.3.tar.gz from http://aarnet.dl.sourceforge.net/re2c</div><div>:debug:fetch Privilege de-escalation not attempted as not running as root.</div><div>:debug:checksum checksum phase started at Sat Sep 19 07:17:48 CST 2015</div><div>:notice:checksum ---&gt; &nbsp;Verifying checksums for re2c</div><div>:debug:checksum Executing org.macports.checksum (re2c)</div><div>:info:checksum ---&gt; &nbsp;Checksumming re2c-0.14.3.tar.gz</div><div>:debug:checksum Calculated (rmd160) is 5c35fda794fcb20a40363913abd9c99885105f1c</div><div>:error:checksum Checksum (rmd160) mismatch for re2c-0.14.3.tar.gz</div><div>:info:checksum Portfile checksum: re2c-0.14.3.tar.gz rmd160 497ed3eac2d40f63173edc4d9fd27c4e8eec7163</div><div>:info:checksum Distfile checksum: re2c-0.14.3.tar.gz rmd160 5c35fda794fcb20a40363913abd9c99885105f1c</div><div>:debug:checksum Calculated (sha256) is f2b2711d9275e0271a7989be41f85a47c631a0b8fc89d79f3cf2d8ca3209c091</div><div>:error:checksum Checksum (sha256) mismatch for re2c-0.14.3.tar.gz</div><div>:info:checksum Portfile checksum: re2c-0.14.3.tar.gz sha256 1c6806df599f3aef0804b576cfdf64bdba5ad590626dfca2d44e473460917e84</div><div>:info:checksum Distfile checksum: re2c-0.14.3.tar.gz sha256 f2b2711d9275e0271a7989be41f85a47c631a0b8fc89d79f3cf2d8ca3209c091</div><div>:notice:checksum ***</div><div>:notice:checksum The non-matching file appears to be HTML. See this page for possible reasons</div><div>:notice:checksum for the checksum mismatch:</div><div>:notice:checksum &lt;https://trac.macports.org/wiki/MisbehavingServers&gt;</div><div>:notice:checksum ***</div><div>:notice:checksum The file has been moved to: /opt/local/var/macports/distfiles/re2c/re2c-0.14.3.tar.gz.html</div><div>:error:checksum org.macports.checksum for port re2c returned: Unable to verify file checksums</div><div>:debug:checksum Error code: NONE</div><div>:debug:checksum Backtrace: Unable to verify file checksums</div><div>&nbsp; &nbsp; while executing</div><div>"portchecksum::checksum_main org.macports.checksum"</div><div>&nbsp; &nbsp; ("eval" body line 1)</div><div>&nbsp; &nbsp; invoked from within</div><div>"eval $procedure $targetname"</div><div>:info:checksum Warning: targets not executed for re2c: org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install</div><div>:error:checksum Failed to install re2c</div><div>:debug:checksum Registry error: scons not registered as installed &amp; active.</div><div>&nbsp; &nbsp; invoked from within</div><div>"registry_active $subport"</div><div>&nbsp; &nbsp; invoked from within</div><div>"$workername eval registry_active \$subport"</div><div>:notice:checksum Please see the log file for port re2c for details:</div><div>&nbsp; &nbsp; /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2c/re2c/main.log</div></div><div><br></div><div><br></div></div>