After upgrading to Mountain Lion, I noticed that I can't install ports via Macports. I get the following error:
Error: The installed version of Xcode (3.2.6) is too old to use on the installed OS version. Version 4.1 or later is recommended on Mac OS X 10.8.
I have Xcode version 4.4.1 + command line tools, I tried upgrading ports, and selfupdate, but I still get the same error.
Best Answer
Downloading a new version of MacPorts will be required as noted in Migration - MacPorts since you updated to a new version of OS X and additionally too a new version of Xcode. The old MacPorts install is now longer compatible with the installed OS and development tools.
See Installing MacPorts for more information on how to get and install the latest version of MacPorts.