HIgh Sierra brew install mariadb 에러

High Sierra 부터 /usr/local 폴더에 일반적으로 쓰던 chmod, chown 으로 권한을 주는 방법이 불가능해졌다.

high sierra 에서 brew install mariadb 를 할 경우

/usr/local/include 라는 폴더를 만드는 과정이 필요한데 위 원인때문에 설치가 불가능하다.

이때

sudo mkdir -p /usr/local/n; sudo chown $(whoami) /usr/local/n

를 해서 우선 폴더를 만들어주고

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

를 해준 뒤

brew install mariadb

를 해주면 설치완료, 만약 symlink 에러가 발생하면

brew link mariadb

를 해주면 된다.

참고자료

Add support for macOS 10.13 High Sierra by ktheory · Pull Request #49 · kickstarter/laptop
This script on High Sierra works for me.As for dropping legacy support, I’m inclined to do that whenever itbecomes a support burden. Removes an old workaround from Aug 2016Skips /usr/local owne...
Can’t chown /usr/local in High Sierra · Issue #3228 · Homebrew/brew
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 unl...

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com