unable to install homebrew I am using this command.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

getting this error. i have already installed updated command line tool

enter image description here

enter image description here

  • The error message includes a suggestion to update via Apple (menu) > App Store…. What do you see in App Store.app under the Updates tab? Commented Feb 4, 2016 at 16:24
  • i have already updated Command line tool. check updated second image. Commented Feb 4, 2016 at 16:28
  • What does /usr/bin/xcode-select -print-path show? I've deleted my answer since you don't need any software updates and you might only need to run sudo /usr/bin/xcode-select -r if you don't get the correct directory listing from the print path command. From what I can tell,your script can't find a git binary and is asking for the developer tools to be installed yet you already have them installed.
    – bmike
    Commented Feb 4, 2016 at 17:03
  • Have you opened an issue with homebrew themselves? Maybe someone there has seen this before. Commented Feb 4, 2016 at 18:25
  • i have not installed xcode. is that a problem? Commented Feb 4, 2016 at 18:29

1 Answer 1


From your output, it looks like the developer tools version of git is missing. You could uninstall Xcode (delete it) and try again a manual install of just the tools homebrew needs.

I prefer to install the command line tools as follows:

  • Have an admin user/password handy - you don't need to be logged in as an admin - just know the password
  • /usr/bin/xcode-select --install

That should either error if you have Xcode already installed or command line tools. If you don't have the necessary tools - it will download and ask for installation.

Please note - the Mac App store is having issues right now - you might be doing everything right and need to wait for the server issues to get sorted:

enter image description here

To get past the check you are running into, the command below needs to return a good match that git is Mach-O 64-bit executable x86_64:

file $(/usr/bin/xcode-select -print-path)/usr/bin/git
  • 1
    file $(/usr/bin/xcode-select -print-path)/usr/bin/git /Library/Developer/CommandLineTools/usr/bin/git: Mach-O 64-bit executable x86_64 Commented Feb 4, 2016 at 18:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .