8 | | After performing either of these types of system upgrades, you will first need to [https://www.macports.org/install.php install the base MacPorts system] again, either from the appropriate disk image or from source. If you are upgrading from a prior version of Mac OS X, install the latest version of Xcode for your new OS. This will not be done for you automatically; Xcode is not updated by Software Update, so you must update it manually. For Lion, Xcode is available for free on the Mac App Store (after install you may also need to install "Command Line Tools": XCode->Preferences->Downloads; if upgrading from previous version of xcode you may also need to do 'sudo xcode-select -switch /Applications/Xcode.app', [http://stackoverflow.com/questions/9849034/how-to-run-install-xcodebuild see this SO article]). For earlier OS versions, you will find the Xcode installer on the Mac OS X installation DVD or on the Apple Developer web site. |
| 8 | After performing either of these types of system upgrades, you will need to update the development tools. If you are upgrading from a prior version of Mac OS X, install the latest version of Xcode for your new OS. This will not be done for you automatically; Xcode is not updated by Software Update, so you must update it manually. |
10 | | === Update macports.conf === |
| 10 | ==== Mac OS X 10.6 Snow Leopard and earlier ==== |
| 11 | |
| 12 | You will find the Xcode installer on the Mac OS X installation DVD or on the Apple Developer web site. |
| 13 | |
| 14 | ==== Mac OS X 10.7 Lion and OS X 10.8 Mountain Lion ==== |
| 15 | |
| 16 | Xcode is available for free on the Mac App Store (after install you may also need to install "Command Line Tools": XCode->Preferences->Downloads; if upgrading from previous version of xcode you may also need to do 'sudo xcode-select -switch /Applications/Xcode.app', [http://stackoverflow.com/questions/9849034/how-to-run-install-xcodebuild see this SO article]). |
| 17 | |
| 18 | ==== Mac OS X 10.9 Mavericks ==== |
| 19 | |
| 20 | For minimum support of MacPorts, you need the Command Line Tools, which can be installed using `xcode-select --install`. Note that some ports will require a full Xcode installation, which is available for free on the Mac App Store. |
| 21 | |
| 22 | |
| 23 | === Reinstall MacPorts === |
| 24 | |
| 25 | After updating the development tools such as Xcode and the Command Line Tools, [https://www.macports.org/install.php install the base MacPorts system] again, either from the appropriate disk image if already available or from source. |
| 26 | |
| 27 | ==== Update macports.conf ==== |