MacPorts Berkley-DB 4 problem and work around

Posted by in Uncategorized

I’ve upgraded my MacPro’s hardware a bit the other day and I’ve noticed that something went bye-bye when running eclipse. Namely eclipse itself wasn’t working anymore. So I thought: What a great opportunity to do an update (eclipse, jdk…). And MacPorts. Because I wanted to upgrade my python to 2.7 (2.7 has a couple of extra niceties compared to 2.6, and django doesn’t yet work with 3.x).

Anyway, I’ve downloaded the Helios eclipse, cleaned up macports and updated it again. Nice. Had to re-download Xcode, which, this time is a 2.x GB, due to the inclusion of iOS devel environment. Oh, well…

When doing a port install python27, I’ve noticed an error:


Fortunately, I’ve managed to install most of the other dependencies by hand, so only this one and xorg were left. Went to the tutorial and did the forced clean and everything, to no avail. So went to follow the file trail and to the bug tracker. Surprise! All the patches were in fact HTML pages from Oracle. The links like:

were redirecting to:

After a bit more digging, I’ve found another place containing the patch and wrote simple set of scripts:

  1. run sudo port install db46 (which is going to fail)
  2. change dir to where the port command downloaded the stuff (mine is in: /opt/local/var/macports/distfiles/db4/4.6.21_6)
  3. remove the patches
  4. do:

  5. run sudo port install db46 again

This way, you get the db46 to compile nicely and can continue the installation of whatever triggered this issue. And blame Oracle, of course (it seems to be trendy these days…)

PS: The messages with the work around on the bug tracker are mine :)

A little experiment: If you find this post and ad below useful, please check the ad out :-)