· software-development

Installing git-svn on Mac OS X

I somehow managed to uninstall git-svn on my machine and Emmanuel Bernard’s blog post suggested it could be installed using ports:


sudo port install git-core +svn

I tried that and was ending up with the following error:


--->  Computing dependencies for git-core
--->  Dependencies to be installed: p5-svn-simple subversion-perlbindings apr-util db46 cyrus-sasl2 neon serf subversion p5-term-readkey
--->  Verifying checksum(s) for db46
Error: Checksum (md5) mismatch for patch.4.6.21.1
Error: Checksum (md5) mismatch for patch.4.6.21.2
Error: Checksum (md5) mismatch for patch.4.6.21.3
Error: Checksum (md5) mismatch for patch.4.6.21.4
Error: Target org.macports.checksum returned: Unable to verify file checksums

A bit of googling led me to the macports website where it was pointed out that this problem was happening in that user’s case because the link to the patch now redirects to a HTML page:

It's actually the fact that the links pointing to those patches have become invalid. http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/ redirects to the Berkley-DB webpage http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html and you get a HTML instead of the real patch.

I’m not sure if that’s the case for me because only the Checksum is failing, nothing is mentioned about downloading from Oracle’s website.

By adapting one of the suggestions for downloading the patches manually I arrived at the following combination of commands to fix the db46 dependency:


cd /opt/local/var/macports/distfiles/db4/4.6.21_6/
sudo rm -rf patch*
for i in 1 2 3 4; do echo $i && sudo curl http://distfiles.macports.org/db4/4.6.21_6/patch.4.6.21.$i -O; done

Followed by:


sudo port install git-core +svn

And I’m back in the game!

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket