-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Description
Please always follow these steps:
- Confirmed this is a problem with running a
brew
command and notbrew install
ing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/newRanbrew update
and retried your prior step?Ranbrew doctor
, fixed all issues and retried your prior step?Ranbrew config
andbrew doctor
and included their output with your issue?To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
To help us debug your issue please explain:
- What you were trying to do (and why)
I have updated to MacOS 10.13 (High Sierra). I am trying to run 'brew update' for the first time since the update. - What happened (include command output)
Output:
Error: /usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
sudo chown -R $(whoami) /usr/local
- What you expected to happen
Homebrew should update. - Step-by-step reproduction instructions (by running
brew
commands)
brew update
after updating to 10.13
I ran brew doctor and received the following list of instructions:
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: /usr/local is not writable.
You should change the ownership and permissions of /usr/local
back to your user account.
sudo chown -R $(whoami) /usr/local
Warning: /usr/local is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. For example, upgrading
to OS X El Capitan has been known to do this. Some versions of the
"InstantOn" component of Airfoil or running Cocktail cleanup/optimizations
are known to do this as well.
You should change the ownership and permissions of /usr/local back to
your user account.
sudo chown -R $(whoami) /usr/local
Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
anew with `pip install --upgrade`.
Warning: You are using OS X 10.13.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Warning: Ruby version 2.3.3 is unsupported on 10.13. Homebrew
is developed and tested on Ruby 2.0, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.
Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.
As you're likely aware, '/usr/local' is not writeable in 10.13. I tried the same with '/usr/local/include' as suggested by another issue. This did not work.
My version is a bit outdated:
HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9f6cb8ed040d37d9706ee2b26e2c0a414f9a4660
Last commit: 1 year, 2 months ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: e490f85beb0835680e3580a11a33aaa38e0ce9c9
Core tap last commit: 1 year, 2 months ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.13.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Java: 1.8.0_101
OS X: 10.13-x86_64
Xcode: 9.0
CLT: N/A
X11: N/A
I suspect uninstalling and reinstalling will solve my problems.
Activity
JustinTRoss commentedon Oct 8, 2017
Re-install with instructions from Homebrew homepage result in failure.
JustinTRoss commentedon Oct 8, 2017
The following worked to re-install:
Brew now works entirely as expected..
ilovezfs commentedon Oct 8, 2017
@JustinTRoss glad to hear you got this sorted out!
JustinTRoss commentedon Oct 9, 2017
@ilovezfs Is that uninstall and reinstall cycle the recommended approach for users moving to High Sierra?
MikeMcQuaid commentedon Oct 9, 2017
@JustinTRoss if you see an identical failure yes but it shouldn't be required for the vast majority of users.
brew update
on macOS 10.13 High Sierra #3322monajalal commentedon Nov 4, 2017
I was getting the below error
and @JustinTRoss solution fixed it! Thanks!