-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Can't chown /usr/local in High Sierra #3228
Comments
Correct.
|
Amazing, thanks! I first had to mkdir include and Frameworks in /usr/local before running that command, but now everything works. |
From the issue template:
|
FYI I had to create the Thank you for the help! |
As a workaround, execute the command to the subdirectory. The error message was: ``` chown: changing ownership of '/usr/local': Operation not permitted ``` See also: - Homebrew/brew#3228 - https://stackoverflow.com/questions/46459152/cant-chown-usr-local-for-homebrew-in-osx-10-13-high-sierra
I am running OS X High Sierra and need to change permissions for /usr/local, but it won't let me. I first ran brew update, and after fixing issues, brew doctor just gives:
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run
brew link
on these:gdbm
python
libyaml
ruby
brew link ruby gives:
Linking /usr/local/Cellar/ruby/2.4.2...
Error: Could not symlink include/ruby-2.4.0
/usr/local/include is not writable.
sudo chown -R$(whoami) $ (brew --prefix) gives
chown: /usr/local: Operation not permitted
ls -lO /usr gives
total 0
drwxr-xr-x 975 root wheel restricted 31200 26 Sep 21:55 bin
drwxr-xr-x 292 root wheel restricted 9344 26 Sep 22:06 lib
drwxr-xr-x 233 root wheel restricted 7456 26 Sep 21:55 libexec
drwxr-xr-x 13 root wheel sunlnk 416 26 Sep 22:05 local
drwxr-xr-x 246 root wheel restricted 7872 26 Sep 21:55 sbin
drwxr-xr-x 46 root wheel restricted 1472 26 Sep 21:55 share
drwxr-xr-x 5 root wheel restricted 160 21 Sep 00:32 standalone
brew config gives
HOMEBREW_VERSION: 1.3.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: ac8b585
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 168b65e
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.14.1 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.0/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Java: N/A
macOS: 10.13-x86_64
Xcode: 9.0
CLT: N/A
X11: N/A
Any ideas on how to proceed? Thanks!
The text was updated successfully, but these errors were encountered: