본문 바로가기

개발

brew 로 패키지 설치시 link 깨질때

반응형

brew 로 패키지 설치 시 깨질때 방법 


Homebrew and Symlink Issues

if you see this:

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

then do this:

sudo chown -R $(whoami) $(brew --prefix)/*

note the $(brew --prefix)/* ...High Sierra doesn't allow you to change permissions on /user/local directly)

then this:

sudo install -d -o $(whoami) -g admin /usr/local/Frameworks


반응형