Closed alexreg closed 6 years ago
Can you rerun with --debug
?
Aha, permissions error. Looks like things got changed upgrading to Mojave? What do you recommend?
==> Postinstalling libepoxy
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall libepoxy`
==> An exception occured within a child process:
Errno::EACCES: Permission denied @ dir_s_mkdir -
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:254:in `mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:254:in `fu_mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:228:in `block (2 levels) in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:226:in `reverse_each'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:226:in `block in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:211:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/pathname.rb:576:in `mkpath'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:901:in `block in post_install'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:38:in `block (3 levels) in safe_fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:32:in `fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:32:in `block (2 levels) in safe_fork'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:29:in `open'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:29:in `block in safe_fork'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir'
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:28:in `safe_fork'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:898:in `post_install'
/usr/local/Homebrew/Library/Homebrew/cmd/postinstall.rb:14:in `block in postinstall'
/usr/local/Homebrew/Library/Homebrew/cmd/postinstall.rb:11:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/postinstall.rb:11:in `postinstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:91:in `<main>'
Can you check that you own all Homebrew-related directories and files under /usr/local
?
I use (and maintain) brewdo, so it's the _homebrew
user, but here's my ls -la
.
drwxr-xr-x 26 root wheel 832 5 Oct 16:59 .
drwxr-xr-x@ 10 root wheel 320 5 Oct 16:55 ..
-rw-r--r-- 1 root wheel 0 17 Jul 22:50 .com.apple.installer.keep
drwxr-xr-x 24 _homebrew wheel 768 5 Oct 17:00 Caskroom
drwxr-xr-x 351 _homebrew _homebrew 11232 5 Oct 17:00 Cellar
drwxr-xr-x 3 _homebrew wheel 96 5 Oct 16:58 Frameworks
drwxr-xr-x 20 _homebrew wheel 640 5 Oct 17:00 Homebrew
drwxr-xr-x 8 _homebrew wheel 256 5 Oct 17:00 Library
drwxr-xr-x 7 root wheel 224 5 Oct 16:59 MacGPG2
drwxr-xr-x 3 root admin 96 5 Oct 16:53 OpenSourceVersions
drwxr-xr-x 1966 _homebrew wheel 62912 5 Oct 18:53 bin
drwxr-xr-x 3 root wheel 96 5 Oct 16:57 cuda
drwxr-xr-x 7 root admin 224 5 Oct 16:57 dyndns
drwxrwxr-x 58 _homebrew wheel 1856 5 Oct 16:59 etc
drwxr-xr-x 8 root admin 256 5 Oct 16:58 git
drwxrwxr-x 429 _homebrew wheel 13728 5 Oct 18:53 include
drwxrwxr-x 1268 _homebrew wheel 40576 5 Oct 18:53 lib
drwxrwxr-x 4 _homebrew wheel 128 5 Oct 16:56 libexec
drwxr-xr-x 7 root wheel 224 5 Oct 17:00 lmm
lrwxr-xr-x 1 499 admin 9 25 Nov 2013 man -> share/man
drwxrwxr-x 389 _homebrew wheel 12448 5 Oct 18:53 opt
drwxr-xr-x 3 root admin 96 5 Oct 16:59 remotedesktop
drwxr-xr-x 5 _homebrew wheel 160 5 Oct 16:58 sbin
drwxrwxr-x 106 _homebrew wheel 3392 5 Oct 17:00 share
drwxr-xr-x 4 root admin 128 5 Oct 16:59 texlive
drwxrwxr-x 15 _homebrew wheel 480 5 Oct 16:59 var
I am not sure what is brewdo
, but it may be the root of the issue. We haven't had any other report like this. Also, the large number of warnings in brew doctor
indicate that there is something weird going on in your system.
Can you reproduce on a clean install?
I don't have the ability to test with a clean installation. In any case, the brew doctor
issues are not so concerning, since they are all clearly due to other software installing in /usr/local
(which is acceptable, since it's where most 3rd-party software that is not an app should go).
Here is brewdo.
Ah, looks like the macOS upgrade changed the permissions of /var/log/homebrew
. Fixed, and sorry to bother you.
Ah, looks like the macOS upgrade changed the permissions of /var/log/homebrew
. Fixed, and sorry to bother you.
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?I just upgraded to macOS Mojave, and now when I do
brew upgrade formula
orbrew postinstall formula
, I get the following, e.g.This also occurs for other formulae, e.g.
exercism
,unrar
... possibly all formulae?gist-logs
doesn't produce anything, but here's the output ofconfig
:And
doctor
:No idea what the last error is about in
doctor
... very strange!