brew install mysql

치면 우선 설치는 된다..

brew doctor // 문제가 있는지 확인을 해본다.
1
2
3
4
5
6
7
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:
 
    mysql
cs

이런 문제가 뜬다.. 설치가 안된건가 해서 다시 설치를 해본다. 그러면

1
Warning: mysql-5.7.15 already installed, it's just not linked
cs

설치는 되었으나 연결이 안됐다는 이상한 소리를 한다.


brew link mysql

그래서 연결시키려면

1
2
3
4
5
6
7
8
brew link mysql
 
Linking /usr/local/Cellar/mysql/5.7.15... 
 
Error: Could not symlink share/doc/mysql
 
 
/usr/local/share/doc is not writable.
cs

이런다.


그래서 구글링을 해보니

http://stackoverflow.com/questions/26647412/homebrew-could-not-symlink-usr-local-bin-is-not-writable

1
2
3
4
5
6
7
I was able to resolve this issue;
 seems this to be an issue non specific to the packages being installed but of the permissions of homebrew folders.
 
sudo chown -R `whoami`:admin /usr/local/bin
For some packages, you may also need to do this to /usr/local/share.
 
sudo chown -R `whoami`:admin /usr/local/share
cs

그.. 그렇다고 한다.. 어쨌든 시키는데로 하고 다시 연결하니

1
2
brew link mysql
Linking /usr/local/Cellar/mysql/5.7.15... 93 symlinks created
cs

되었다.

'이것저것 > Mac*IOS' 카테고리의 다른 글

App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥에 Homebrew 설치  (0) 2016.09.26
맥에서 중국어 입력하기  (0) 2016.09.25
맥 캘린더에 구글 캘린더 연동하기  (0) 2016.09.25

+ Recent posts