나는 홈브류를 훌륭하게 작동 시키려고 노력했지만 내부의 모든 것이 /usr/local
쓰기 가능하지 않으며 모든 것이 넘어집니다.
그것은 재귀 적으로 나에게 계속 말하고 chown
/usr/local
, 나는 그것을 시도했다. 작업이 거부되었으므로 sudo’d. 그것은 작동하는 것처럼 보였지만, 들리는 엉뚱한 침묵으로 유닉스에서는 공손한 것으로 간주됩니다. 불행히도, 모든 후속 시도 brew update
는 동일한 오류 메시지 를 충족시킵니다.
명령을 다시 실행했으며 -v
내부에 아무것도 허용되지 않는 것으로 보입니다.
대답은 아마 “UNIX를 배우는 것”일뿐입니다. 루비에 대한 튜토리얼을 위해 여기에 몇 가지 작업 요구 사항을 따르려고 노력하고 있습니다.
brew doctor
:
Warning: /usr/local/Frameworks isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/Frameworks
Warning: /usr/local/Cellar isn't writable.
You should `chown` /usr/local/Cellar
Warning: /usr/local/etc isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/etc
Warning: /usr/local/include isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/include
Warning: /usr/local/lib isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/lib
Warning: /usr/local/lib/pkgconfig isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/lib/pkgconfig
Warning: /usr/local/opt isn't writable.
You should `chown` /usr/local/opt
Warning: /usr/local/share isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/share
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man7
/usr/local/share/man/man8
Warning: /usr/local/var isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/var
답변
다음과 같은 방법으로 해당 디렉토리의 권한을 변경하여 해결해야합니다.
$ cd /usr/local
$ sudo chown -R <your-username>:<your-group-name> *
그룹을 모르는 경우을 입력하십시오 id -g
.
답변
다음 과 같이 상승 된 권한으로 명령을 실행 하려면 sudo 를 사용해야 합니다.
sudo chown -R `whoami` /usr/local
답변
나는 맥 OS 10.13.4 어제이 문제에 직면했다 내가하려 sudo chgrp -R admin /usr/local
하거나 sudo chown -R <your-username>:<your-group-name> /usr/local
하는 것은 얻을 Operation not permitted
사용하더라도 오류sudo
단지하려고 나는 그래서 chgrp
위해 Homebrew
관련된 폴더 admin
(내 사용자에 admin
와 부여 실행중인 사용자에 따라, 그룹, 다른 그룹에 변화 beed 수) admin
이 명령을 사용하여 그룹이 폴더에 대한 쓰기 권한을
sudo chgrp -R admin /usr/local/Homebrew/
sudo chmod -R g+w /usr/local/Homebrew/
sudo chgrp -R admin /usr/local/var/homebrew/
sudo chmod -R g+w /usr/local/var/homebrew/
이 명령을 실행 한 후 문제없이 새 패키지를 설치할 수 있습니다. 권한 문제가 다시 발생하면 폴더 이름을 권한 문제가 발생한 이름으로 바꾸어 처음 두 명령을 실행하십시오.
이것이 macOS 10.13을 사용하는 다른 사용자에게 도움이되기를 바랍니다.
참고 : 소유자를
/usr/local
변경하거나 그룹을 변경하고 그룹에/usr/local
대한 액세스 권한을 부여하더라도 다른 관련없는 폴더를 수정하는 경우에도 그렇게하지 않아야합니다. 필요한 폴더를 수정하는 것이 훨씬 안전합니다.
답변
디렉토리의 권한 문제를 해결하기 위해 다음 명령을 수행 할 수 있습니다.
brew prune
답변
그것은 나를 위해 일했다.
sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
답변
의 레자로 대답 이 질문에 나를 위해 일한 :
sudo chown -R $(whoami) /usr/local/*
/ usr / local 자체에 대한 권한은 변경할 수 없지만 아래 폴더에 대한 올바른 권한은 변경할 수 있습니다