6 votes

Some questions about using terminal

When running brew upgrade I get some errors that I'd like to resolve.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I'm fairly new to terminal and have no idea what this is or how to fix it.

The next one is:

Error: Could not link: /usr/local/share/doc/homebrew
Please delete these paths and run 'brew update'.

How, exactly, do I delete paths?

Also, would you recommend some introductory to intermediate reading on how to use terminal?

1 comment

  1. tesseractcat
    Link
    The trick to using the terminal is getting good at googling issues. Fair warning that I have not used the MacOS command line or homebrew. For the first issue, the first link to Googling "invalid...

    The trick to using the terminal is getting good at googling issues. Fair warning that I have not used the MacOS command line or homebrew.

    For the first issue, the first link to Googling "invalid active developer path" is this stackexchange post. The solution they provide is to run the command xcode-select --install.

    For the second issue, the first link to Googling "Could not link: /usr/local/share/doc/homebrew" is this brew forum post. The solution they provide is to run the command rm -rf /usr/local/share/doc/homebrew (be careful because rm -rf is a dangerous command, make sure there's nothing in that folder you need).

    8 votes