티스토리 뷰

MySQL 설치를 위해 homebrew를 설치하던 도중 인터넷이 잘 연결이 되지 않았던 건지 중단되어 오류가 났다.

그래서 일단은 다시 설치하려고 했다. 하지만.. 역시 설치가 제대로 되지 않았음

 

설치하는 명령 ▼

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

설치하는 명령을 입력했더니 아래와 같이 뭔가 안된다고 한다. 맨 처음 설치하던게 중단되면서 그 파일이랑 뭔가 문제가 있는 것 같았다.

HEAD is now at 320bccb38 Merge pull request #10594 from Bo98/consistent-alignment
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.

 

그래서 그러면 깔려있는걸 지우면 되지 않을까 싶어서 uninstall 명령을 실행했다.

uninstall ▼

 % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"

homebrew uninstall! 은 나왔지만, 뭔가 이상함

 

 

다시 install 명령을 실행해봤다.

HEAD is now at 320bccb38 Merge pull request #10594 from Bo98/consistent-alignment
fatal: Could not resolve HEAD to a revision
==> Installation successful!

Installation successful 이라고는 하는데..뭔가 이상했다.

그래도 혹시 하는 마음으로 mysql 을 설치하려고 시도해보았다.

 

MySQL 설치 ▼

% brew install mysql

하지만 역시 문제가 발생했다. 애초에 homebrew 설치가 이상하게 된 것 같았다.

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "mysql".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

 

그래서 구글링을 통해 문제 해결방법을 찾았더니 doctor를 부르면 문제를 알려준다더라.

그래서 $ brew doctor 을 통해 문제를 진단했다.

Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo homebrew/core) checkout master

이렇게 나온 결과를 토대로, 마지막줄을 복붙해서 실행했다.

%  git -C $(brew --repo homebrew/core) checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Already on 'master'

 

 

이후 MySQL 을 다시 Install 해보니 성공적으로 실행되었다!!!1

 

 

 

+ brew doctor 실행시 나왔던 또 다른 Warning

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

homebrew를 통해 설치하지 않은 내용들이 밑에 쫘르륵~ 나온다. 나는 node를 미리 설치했었기 때문에 node와 관련된 폴더들이 나왔다. 이를 해결하려면 삭제하고 다시 homebrew를 통해 설치하면 된다고 한다.

'공부일지' 카테고리의 다른 글

[삽질] Intellij(인텔리제이) import 오류  (0) 2021.04.07
[삽질] Error: Unknown command: cask  (2) 2021.02.15
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함