Home-brew won't install on Mojave


(Randy Cutshaw) #1

sslx-f1102-5gd0:~ davidcutshaw$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following existing directories will be made group writable:

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/opt

/usr/local/var

/usr/local/Frameworks

/usr/local/var/homebrew

/usr/local/var/homebrew/linked

==> The following existing directories will have their owner set to davidcutshaw :

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/opt

/usr/local/var

/usr/local/Frameworks

/usr/local/var/homebrew

/usr/local/var/homebrew/linked

==> The following existing directories will have their group set to admin :

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/opt

/usr/local/var

/usr/local/Frameworks

/usr/local/var/homebrew

/usr/local/var/homebrew/linked

==> The following new directories will be created:

/usr/local/Cellar

==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/opt /usr/local/var /usr/local/Frameworks /usr/local/var/homebrew /usr/local/var/homebrew/linked

Password:

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/opt /usr/local/var /usr/local/Frameworks /usr/local/var/homebrew /usr/local/var/homebrew/linked

==> /usr/bin/sudo /usr/sbin/chown davidcutshaw /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/opt /usr/local/var /usr/local/Frameworks /usr/local/var/homebrew /usr/local/var/homebrew/linked

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/opt /usr/local/var /usr/local/Frameworks /usr/local/var/homebrew /usr/local/var/homebrew/linked

==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar

mkdir: /usr/local/Cellar: Input/output error

Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar

sslx-f1102-5gd0:~ davidcutshaw$


(Sean Molenaar) #2

This looks like an issue with your disk. What happens when you run that last command manually?


(Randy Cutshaw) #3

looks like the Homebrew install script created a link to Caskroom and Cellar in local:

sslx-f1102-5gd0:~ davidcutshaw$ cd /usr/local
sslx-f1102-5gd0:local davidcutshaw$ ls
Caskroom Homebrew git libexec sbin
Cellar bin include opt share
Frameworks etc lib remotedesktop var
sslx-f1102-5gd0:local davidcutshaw$ ls -ls
total 0
0 lrwxr-xr-x 1 root wheel 42 Jul 27 08:09 Caskroom -> /Library/Panorama9/bin/brew-1.7.1/Caskroom
0 lrwxr-xr-x 1 root wheel 40 Jul 27 08:09 Cellar -> /Library/Panorama9/bin/brew-1.7.1/Cellar
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 Frameworks
0 drwxr-xr-x 2 root wheel 64 Oct 2 11:17 Homebrew
0 drwxrwxr-x 21 davidcutshaw admin 672 Oct 1 16:26 bin
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 etc
0 lrwxr-xr-x 1 davidcutshaw wheel 47 May 11 2017 git -> /Library/Application Support/Panorama9/bin/git/
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 include
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 lib
0 drwxrwxr-x 4 davidcutshaw wheel 128 Oct 1 16:24 libexec
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 opt
0 drwxr-xr-x 3 davidcutshaw wheel 96 Oct 1 16:24 remotedesktop
0 drwxrwxr-x 2 davidcutshaw admin 64 Oct 2 11:17 sbin
0 drwxrwxr-x 3 davidcutshaw admin 96 Oct 1 16:26 share
0 drwxrwxr-x 3 davidcutshaw admin 96 Oct 2 11:17 var

Should I get rid of these and run the script again?


(Sean Molenaar) #4

I’m not sure what panorama9 is but it’s not homebrew. You’d need to get rid of those pre-existing files to have the homebrew installer succeed


(Randy Cutshaw) #5

Thank you for the input.

After removing the Caskroom and Cellar files and re-running the install script, I got this git error:

sslx-f1102-5gd0:local davidcutshaw$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew…

/usr/local/Homebrew/.git: Permission denied

Failed during: git init -q

I removed the git link and the Homebrew directory and reran the install script:

sslx-f1102-5gd0:local davidcutshaw$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew…

warning: templates not found /usr/local/git/share/git-core/templates

fatal: Unable to find remote helper for ‘https’

Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

I tried running the uninstall script:

sslx-f1102-5gd0:local davidcutshaw$ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)”

Failed to locate Homebrew!

sslx-f1102-5gd0:local davidcutshaw$

sslx-f1102-5gd0:local davidcutshaw$

sslx-f1102-5gd0:local davidcutshaw$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew…

warning: templates not found /usr/local/git/share/git-core/templates

fatal: Unable to find remote helper for ‘https’

Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

sslx-f1102-5gd0:local davidcutshaw$ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)”

Failed to locate Homebrew!


(Sean Molenaar) #6

Something seems to have broken your git install. what happens when you run ls $(git --exec-path) | grep https and which git?


(Randy Cutshaw) #7

ls $(git --exec-path) | grep https

ls: /usr/local/git/libexec/git-core: No such file or directory

sslx-f1102-5gd0:local davidcutshaw$ which git

/usr/local/bin/git


(Sean Molenaar) #8

It seems like you had some tools preinstalled which partially used the homebrew directories.
Can you check what ls -al /usr/local/bin/git and ls -al ls -al /usr/local/Cellar/git show you?


(Randy Cutshaw) #9

sslx-f1102-5gd0:local davidcutshaw$ ls -al /usr/local/bin/git

lrwxr-xr-x 1 davidcutshaw wheel 54 May 11 2017 /usr/local/bin/git -> /Library/Application Support/Panorama9/bin/git/bin/git

sslx-f1102-5gd0:local davidcutshaw$ ls -al ls -al /usr/local/Cellar/git

ls: -al: No such file or directory

ls: /usr/local/Cellar/git: No such file or directory

ls: ls: No such file or directory


(Sean Molenaar) #10

I’m not sure what Panorama9 is but it seriously broke any potential homebrew setup. If you don’t need anything it installed anymore I’d just remove everything in /usr/local and run the homebrew installer “from scratch”


(Randy Cutshaw) #11

That worked. Homebrew is now installed. Thank you for your time on this - much appreciated.