Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when installing PortAudio through homebrew. (MAC)

I'm attempting to make a speech recognition program with python, but I need to have PyAudio installed, which needs PortAudio. When I try to install PortAudio through Homebrew (The only way it gives me) an error pops up in terminal:

Updating Homebrew... ==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git config --local --replace-all homebrew.analyticsmessage true ==> Tapping homebrew/core xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 Error: Failure while executing: /usr/local/bin/brew tap homebrew/core

I don't know what to do from here. I could use some help and I was recommended to ask this question on here. Sorry for the trouble.

like image 452
Lionclaw49 Avatar asked Feb 02 '26 02:02

Lionclaw49


1 Answers

Try running

xcode-select --install

in your terminal, then trying the homebrew installation again.

like image 143
Chris Avatar answered Feb 03 '26 19:02

Chris