Mountain Lion Broke MacPorts - Cannot Update
Based on the error in your update, it appears that (as Nathan said) you haven't installed the Xcode commandline tools yet. You should be able to finish the update process after you've done that.