본문 바로가기

개발/이게 왜 안돼?

[맥/Homebrew] homebrew install 에러

이것저것 해서 패스 설정을 수정했는데

이제는 이전의 에러는 나지 않지만 formula 가 없다는 에러만 자꾸 뜬다

 

mac os 를 최신버전으로 업데이트 하고는 뭔가 이것저것 다 에러가 생긴것 같은데 ( vscode도 다시 설치하래서 다시 설치했음 )

 

발생 에러 (분명 맞는 명령어였는데... brew install kotlin 입력이 틀릴게 뭐가 있다구)

Warning: No available formula with the name "kotlin"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> 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.

 

해결 단계 1 (소요시간 : 15분) - 건너뛰어도 문제 없을 것 같다.

터미널에 brew doctor를 입력하면 문제점들을 보여준다.

Warning: Your Command Line Tools are too outdated.

이러면서 다음과 같이 입력하라 하길래 일단 전부다 삭제하고 재설치 하는중이다

(다 삭제하고 재설치하면 15분 정도 걸리니까 그동안 유튜브 하나 보고 오자.)

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

 

해결 단계 2 (소요시간 : 3분)

그 다음에는 warning에서 추천하는대로 몇가지 제대로 설치가 안됐다는 것들을 다시 지우고 재 설치했다. 

rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core

 

여기까지 하고 다시 brew install kotlin 했는데 잘 설치되고 몇일전 속을 썩였던 brew install mariadb 까지 다 잘됐다.

아마 해결단계 1말고 해결단계 2만 해도 제대로 됐을 것 같다.