| 283 | |
| 284 | == Missing Command Line Tools == #clt |
| 285 | Xcode 4.3 and later do not include a fully working set of command line tools by default. Starting with Mavericks, shims in `/usr/bin` will check for an Xcode installation and automatically use the tools provided by it. In the first case, nothing will build, in the second case, most ports will build, but some will fail because they expect headers to be located in `/usr/include` (which is empty or doesn't exist when the command line tools aren't installed). |
| 286 | |
| 287 | On systems earlier than 10.9 you must open Xcode, go to Preferences, and download this component from the Downloads section. You will require an Apple ID to download the component. Starting with Mavericks you can install the command line tools by executing `xcode-select --install` on the command line. |
| 288 | |
| 289 | {{{#!div class="important" style="background: #99d8c9; border-color: #2ca25f; color: #00441b;" |
| 290 | '''Note:''' MacPorts 2.3.0 will print a warning if the command line tools are missing and advise you how to install them. The message will read: |
| 291 | {{{ |
| 292 | The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. |
| 293 | }}} |
| 294 | |
| 295 | The message will advise you how to install the missing tools, on 10.9: |
| 296 | {{{ |
| 297 | Install them by running `xcode-select --install'. |
| 298 | }}} |
| 299 | On Mountain Lion and below: |
| 300 | {{{ |
| 301 | You can install them from Xcode's Preferences in the Downloads section. |
| 302 | See http://guide.macports.org/chunked/installing.xcode.html#installing.xcode.lion.43 for more information. |
| 303 | }}} |
| 304 | }}} |