Cannot install git-core using macports

Snow Leopard 10.6.4 mac ports 1.9.1

I have just installed macports and I want to install git-core.

However, I get the following errors:

--->  Computing dependencies for git-core
--->  Dependencies to be installed: python26 db46 gdbm readline sqlite3 rsync popt
--->  Building db46
Error: Target org.macports.build returned: shell command failed
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: The following dependencies failed to build: python26 db46 gdbm readline sqlite3 rsync popt
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I have tried doing a port selfupdate and a port clean all and then trying to install again. But still get the same problem.

I have also tried install the dependent db46 on its own.

Here is the log message:

:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install

This is my first time using mac ports.

Many thanks for any suggestions.


I would suggest using Brew.

Brew install git


problem is that 10.6.4 update destroys some symlinks to libraries that db46 needs.. they're still there just no longer in the expected place.. easiest fix is to demote your xcode to lower version and reinstall. grab your snow install disk and reinstall xcode.