Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`xcode-select --install` failing

Running OS X 10.9 trying to upload MacPorts following their guide

Jadam$ xcode-select --version
xcode-select version 2333.

so I have Xcode on the computer, but when I enter in xcode-select --install I get the following return in the terminal:

xcode-select: note: install requested for command line developer tools

Immediately followed by a, pop-up, update error message:

"The xcode-select command requires the command line in 
developer tools. Would you like install the tools now?" 

with the options "Get Xcode", "not now" & "Install". When I choose install, a "Finding Software" loading bar runs through but then ends with the following message:

"can't install the software because it is not currently 
available from the software update server"

The solution here clearly did not work for me.

like image 564
Jadam Avatar asked Dec 04 '13 03:12

Jadam


People also ask

Why won't Xcode install on my Mac?

Open the Mac App Store and sign out of it. Cancel the installation/download. Next, quit the Mac App Store and then restart your Mac. Once you're back on your desktop, open the Mac App Store, sign in again, and then download and install the app.

What is Xcode-select on Mac?

Note: macOS comes bundled with xcode-select , a command-line tool that is installed in /usr/bin . It allows you to manage the active developer directory for Xcode and other BSD development tools.

Does Xcode come preinstalled on Mac?

It's not pre-installed, but you can install it from the Apple developer website or the App Store on your Mac.


2 Answers

The other answer in the thread you linked is one of the possible solutions. It seems the installer will also display this message if your Command Line Tools are current and there are no updates available.

To check whether this is the case for you, check whether /usr/lib/tclConfig.sh exists on your system. Only the Command Line Tools contain this file on Mavericks, so if you have it, you also have the Command Line Tools installed.

like image 187
neverpanic Avatar answered Oct 08 '22 23:10

neverpanic


I got the first message because I accidentally minimized the window installing the dev tools so might be worth checking that :)

like image 39
ngood97 Avatar answered Oct 08 '22 21:10

ngood97