고쳐 쓰다
brew --prefix
반품:
/usr/로컬
문맥
MacOs Mojave 데스크탑은 다음과 같습니다.
- 처음에는 Brew로 구성되었습니다.
- 새로운 사용자가 추가되었습니다
brew
새로운 그룹이 추가될 때마다지시하다brew
User2가 그룹 에 추가되었습니다 :
설치 디렉터리 그룹을 "brew"로 변경합니다.
sudo chgrp -R brew $(brew --prefix)/*
"brew" 그룹에는 쓰기 권한이 부여됩니다.
sudo chmod -R g+w $(brew --prefix)/*
목표는 brew
모든 사용자에 대해 명령을 활성화하는 것입니다.
실수
brew update
반품
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/error.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/explicit_namespace.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/gem_inflector.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/inflector.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/kernel.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader/callbacks.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/real_mod_name.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/registry.rb': Permission denied
warning: unable to unlink 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/version.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/error.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/explicit_namespace.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/gem_inflector.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/inflector.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/kernel.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader/callbacks.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/real_mod_name.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/registry.rb': Permission denied
error: unable to unlink old 'Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.1/lib/zeitwerk/version.rb': Permission denied
Already up-to-date.
질문
목표는 brew
사용자 2에 대한 명령을 활성화하는 것입니다. /Library/Homebrew 디렉터리가 존재하지 않습니다.
brew update
경고 및 오류 메시지의 원인은 무엇입니까 ?- 구제책은 무엇입니까?
답변1
~에 대한이 댓글
컴퓨터에서 어떤 이유로 /Library/Homebrew/를 터치하려고 합니다.
아니요, 위치는 실제로
/usr/local/Homebrew/Library/Homebrew/
- Brew 업데이트 경고 및 오류 메시지의 원인은 무엇입니까?
- 구제책은 무엇입니까?
다중 사용자 구성에 그룹 쓰기 권한을 추가하면 이 문제가 해결됩니다.
sudo chmod -R g+rwX /usr/local/Homebrew/Library/Homebrew/