Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: /usr/local must be writable!" (Sierra 10.12 Beta (16A239j) ) #476

Closed
pookah-net opened this issue Jul 8, 2016 · 8 comments
Closed

"Error: /usr/local must be writable!" (Sierra 10.12 Beta (16A239j) ) #476

pookah-net opened this issue Jul 8, 2016 · 8 comments

Comments

@pookah-net
Copy link

@pookah-net pookah-net commented Jul 8, 2016

Just an FYI, and to get some advice on a better way of solving this! When running brew doctor I get this error:

Warning: /usr/local is not writable.

And when running 'brew update', I get this:

Error: /usr/local must be writable!

I "solved" the problem by running sudo chown -Rwhoami/usr/local. That seems to have cleared the issue up.

Thanks!
Ian

@gentlecat
Copy link

@gentlecat gentlecat commented Jul 8, 2016

Also see #385.

@DomT4
Copy link
Contributor

@DomT4 DomT4 commented Jul 9, 2016

We should probably consider either nudging people towards brew doctor or reprinting the chown instruction from brew doctor. It's fair that in itself simply saying we can't write to the directory isn't particularly helpful.

@pookah-net
Copy link
Author

@pookah-net pookah-net commented Jul 14, 2016

@gentlecat Thanks! I did look, but completely missed that one.

souvik1997 added a commit to souvik1997/brew that referenced this issue Jul 25, 2016
We might as well be consistent about it, since it's not obvious to people
what the next step is after we've pointed out the directory isn't writable.

Fixes Homebrew#476.
@itcuihao
Copy link

@itcuihao itcuihao commented Oct 14, 2016

running sudo chown -R whoami /usr/local;
show: "chown: whoami: illegal user name";
must running "sudo chown -R whoami /usr/local ";
But still thank you

@MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Oct 14, 2016

$(whoami) rather than whoami.

@JayBrown
Copy link

@JayBrown JayBrown commented Oct 14, 2016

To my knowledge you can leave out the -R option. Chowning /usr/local hierarchies is not necessary for homebrew to function properly.

Best thing would be to require sudo for brew commands, but give users an opt-out as well.

@MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Oct 14, 2016

sudo chown -R may be required as a one-off on occasion to allow Homebrew or Homebrew Cask to migrate to the new directory format. It is not required for new installs.

Best thing would be to require sudo for brew commands, but give users an opt-out as well.

It's not required for day-to-day operation but is required for initial installation/migration. The opt-out is to install into a different directory.

@khaledannajar
Copy link

@khaledannajar khaledannajar commented Dec 8, 2016

This did it sudo chown -R $(whoami) /usr/local

@Homebrew Homebrew locked and limited conversation to collaborators Dec 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.