I have macOS Mojave version 10.14.5 installed with Xcode version 10.2.1 and Command Line Tools installed using
xcode-select --install. All problem started when I tried to install
youtube-dl formula on my system by running:
brew install youtube-dl
The output I get is:
Updating Homebrew... Error: Your Xcode (1) is too outdated. Please update to Xcode 9.0 (or delete it). Xcode can be updated from https://developer.apple.com/download/more/ Error: Your Command Line Tools are too outdated. Update them from Software Update in the App Store.
Again, if I run
xcode-select --install, I get:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
xcode-select version 2354
(I do not know what this means) and running:
Owing to these issues, I tried to uninstall Homebrew (with a plan to reinstall it afresh) by running the command:
ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
but it gives the following error:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
Next, I tried to uninstall Homebrew using the
unbrew.rb script available at GitHub but it seems not to remove Homebrew. I tried running it with and without sudo. Even after doing this, running
brew config returns:
HOMEBREW_VERSION: 1.3.2 ORIGIN: https://github.com/Homebrew/brew HEAD: 751334a257d81851e68da7ab390982d4e9fdf909 Last commit: 1 year, 10 months ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 3fd7a855a1a357654a4a9a455162761841a4809d Core tap last commit: 1 year, 10 months ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local/Homebrew HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit broadwell Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Clang: N/A Git: 2.20.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Perl: /opt/local/bin/perl => /opt/local/bin/perl5.24 Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Java: N/A macOS: 10.14.5-x86_64 Xcode: 1 => /Applications/Xcode.app/Contents/Developer CLT: N/A X11: N/A MacPorts/Fink: /opt/local/bin/port
brew doctor outputs the following:
Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: Your Command Line Tools are too outdated. Update them from Software Update in the App Store. Error: Unrecognized Mach-O load command: 0x32
Is my Homebrew broken by my attempts at uninstalling it? What can I do to repair Homebrew and all these errors in pointing to the right Xcode and command line tools?