Search code examples
gitsvninstallationmacports

Unable to install Git-core+svn by MacPorts


I am trying to install Git-core with svn to my Mac unsuccessfully by

$ sudo port install git-core +svn
--->  Verifying checksum(s) for db46
Error: Checksum (md5) mismatch for patch.4.6.21.3
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: The following dependencies failed to build: p5-svn-simple subversion-perlbindings apr-util db46 sqlite3 cyrus-sasl2 neon serf subversion p5-term-readkey
Error: Status 1 encountered during processing.

I have tried to solve the problem unsuccessfully by

sudo port -f clean --all {neon, subversion,...}

How can you solve the problem?

Solved:

A program called Peerguardian blocked the installation. When I removed it, everything works now. Great thanks to all repliers!


Solution

  • It's failing because there was an error building db46; specifically, there was a problem in checksumming the patch files that were downloaded by the port utility. It looks like it may be an issue with the port, but I just built db46 without any problem. Have you updated your ports tree recently? You can try doing this:

    $ sudo port selfupdate               # updates the ports tree and port utility
    $ sudo port install git +svn    # installs git