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

Comments

8 participants
@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

This comment has been minimized.

Show comment
Hide comment
@gentlecat

gentlecat commented Jul 8, 2016

Also see #385.

@DomT4

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Jul 9, 2016

Member

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.

Member

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.

DomT4 added a commit to DomT4/brew that referenced this issue Jul 10, 2016

update: mimic doctor permissions advice
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 #476.

@DomT4 DomT4 referenced this issue Jul 10, 2016

Closed

update: mimic doctor permissions advice #481

4 of 4 tasks complete

DomT4 added a commit to DomT4/brew that referenced this issue Jul 10, 2016

update: mimic doctor permissions advice
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 #476.

@DomT4 DomT4 closed this in 1022bcf Jul 10, 2016

@pookah-net

This comment has been minimized.

Show comment
Hide comment
@pookah-net

pookah-net Jul 14, 2016

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

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

update: mimic doctor permissions advice
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 #476.
@itcuihao

This comment has been minimized.

Show comment
Hide comment
@itcuihao

itcuihao 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

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Oct 14, 2016

Member

$(whoami) rather than whoami.

Member

MikeMcQuaid commented Oct 14, 2016

$(whoami) rather than whoami.

@JayBrown

This comment has been minimized.

Show comment
Hide comment
@JayBrown

JayBrown 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.

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

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Oct 14, 2016

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@khaledannajar

khaledannajar Dec 8, 2016

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

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.