| 274 | |
| 275 | == MacPorts `port install`s fail on OS X Lion 10.7 after a fresh App Store installation of Xcode == |
| 276 | The `port` command will remind you to install Xcode (or upgrade if you have an old version lying around from a previous installation of OS X). This is most easily accomplished using the "App Store" application on your Mac, which requires an Apple ID. Xcode 4.5 is the version currently available for Lion from the App Store. |
| 277 | |
| 278 | However, as with Xcode 4.3 and later (below), the command line tools required for the build process are not installed automatically and require an additional manual step to [#clt install the tools] through Xcode's preferences. |
| 279 | |
| 280 | {{{#!div class="important" style="background: #99d8c9; border-color: #2ca25f; color: #00441b;" |
| 281 | '''Note:''' MacPorts 2.3.0 will print a warning if the command line tools are missing and advise you how to install them. On systems below 10.9, the message should read: |
| 282 | {{{ |
| 283 | The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. |
| 284 | You can install them from Xcode's Preferences in the Downloads section. |
| 285 | See http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lion.43 for more information. |
| 286 | }}} |
| 287 | }}} |