Reputation: 418
I have installed command line tools through Xcode. When I ran xcode-select -p
, its showed /Applications/Xcode.app/Contents/Developer
.
However, when I ran brew config
, it showed CLT: N/A
. And when I updated python using brew, it showed Warning: Building python from source: The bottle needs the Apple Command Line Tools to be installed.
Upvotes: 18
Views: 28358
Reputation: 31580
If you've installed the standalone version of the CLI tools (and don't have the full xcode application):
sudo xcode-select --switch /Library/Developer/CommandLineTools
(path courtesy of https://stackoverflow.com/a/40008480/758177)
Upvotes: 1
Reputation: 79
For the same dependency issue above,
xcode-select --install
and clicking "Install" on the pop-up fixes this in MacOS Catalina. Once complete, you can confirm it by typing xcode-select -v
in the terminal and the output should look similar to this
Upvotes: 0
Reputation: 31
Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.
Upvotes: 2
Reputation: 307
As xcode-select --install
did not solve the issue for me:
I had to run brew doctor
which listed Warning: Some installed formula are missing dependencies.
including a brew install command to fix these. After running that, brew config
reported CLT
no longer as N/A
.
Upvotes: 3
Reputation: 366
I've got the same issue just now. Running xcode-select --install
to reinstall Command Line Tools worked for me, brew config
now reports CLT: 7.3.1.0.1.1461711523
.
Upvotes: 25