How to update Xcode to install "UNIX Development Support"?
Asked Answered
E

6

19

I installed Xcode a long time ago.

Apparently I didn't check back then the "UNIX Development Support" checkbox.

Now I want to have them but when I click on the installation this is what appears:

disabled

The UNIX Development Support check box is disabled

Q: How can I install the UNIX Development Support? Is there a way to run some script that creates all the needed links from /Developer/ to /usr/bin ?

EDIT: Note: This is for old Xcode 3. Screens and tool names differ for Xcode 4 ("Unix Command Line Tools")

Equinoctial answered 22/4, 2010 at 18:19 Comment(1)
You can also download it here: developer.apple.com/downloads/index.action#Gaullist
E
2

Finally.

I had to download from Apple's website the latest version of Xcode 3 (3.2) along with the iPhone SDK that I won't use in the near feature.

This time the "UNIX Development Support" was enabled:

Xcode 3.2 Installation

So now I can compile from the command line!

Equinoctial answered 23/4, 2010 at 6:44 Comment(1)
3.2 is the old version. The answer by @Voelker is more relevant.Dissect
V
37

With Xcode 4.3 (from Apple App Store) you can enable Unix Command Line Tools via the Xcode Menu: Preferences -> Download -> Components

Voelker answered 27/2, 2012 at 12:4 Comment(0)
L
5

In xcode > 4.5 select Preferences -> Download -> Components -> Command Line Tools

Lorindalorine answered 29/11, 2012 at 15:34 Comment(0)
E
2

Finally.

I had to download from Apple's website the latest version of Xcode 3 (3.2) along with the iPhone SDK that I won't use in the near feature.

This time the "UNIX Development Support" was enabled:

Xcode 3.2 Installation

So now I can compile from the command line!

Equinoctial answered 23/4, 2010 at 6:44 Comment(1)
3.2 is the old version. The answer by @Voelker is more relevant.Dissect
M
0

In the Xcode .dmg file, there is a Packages folder. You can manually install DeveloperToolsCLI.pkg which creates the link in /usr/bin.

At least, it worked for me.

Mauldin answered 22/6, 2012 at 9:34 Comment(0)
N
0

You can also right click the "Install Xcode X.X" icon and Show Package Contents then in Contents > Resources > Packages, you will find many packages from among which resides DeveloperToolsCLI.pkg. This package installs the files you want in /usr/bin.

Numerical answered 18/11, 2012 at 15:17 Comment(0)
B
-1

You should uninstall and then re-install the developer tools.

To uninstall the tools, run the following command in Terminal:

sudo /Developer/Library/uninstall-devtools --mode=all
Bromine answered 23/4, 2010 at 5:39 Comment(1)
That's what I tried and had the same results :( I'm downloading the 2gb of the latest Xcode version too see if that works :(Equinoctial

© 2022 - 2024 — McMap. All rights reserved.