Homebrew는 대부분의 설치가 끝날 때 권한을 거부하므로 아무것도 설치할 수 없기 때문에 지금 3 번 설치 제거했습니다.
예를 들어 현재 직면하고있는이 libjpeg 다운로드 시나리오를 게시하겠습니다.
libjpeg를 설치하고 얻으려고합니다.
$ brew install libjpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mountain_lion.bottle.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/jpeg-8d.mountain_lion.bottle.1.tar.gz
==> Pouring jpeg-8d.mountain_lion.bottle.1.tar.gz
Warning: Could not link jpeg. Unlinking...
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link jpeg'
Error: Permission denied - /usr/local/opt/jpeg
'brew link jpeg'결과
Error: Permission denied - /usr/local/opt/jpeg
양조 의사가 읽는 내용은 다음과 같습니다.
$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
./configure scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
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:
jpeg
이 권한 문제로 인해 brew를 사용하는 것이 불가능 해졌으며 어떤 제안이라도 정말 감사하겠습니다.
sudo chown -R $USER:admin /Library/Caches/Homebrew
권한 문제를 해결 하기 위해 실행 해야했습니다.