본문 바로가기

IT/애플_아이폰_맥북

Home brew 에러로 정상적 사용이 어려울때

728x90
반응형

맥에서 사용중인 brew가 가끔 아래와 같은 에러로 먹통일때가 있다.

 

hoseongsong@HoSeongui-Macmini ~ %  brew services start mysql

Could not enable service: 125: Domain does not support specified action
Error: Failure while executing; `/bin/launchctl enable gui/501/homebrew.mxcl.mysql` exited with 125.

 

이런 자질구레한 메세지가 나올땐 brew 를 삭제하고 재설치 해보면 거의 다 되지만 안될때도 많다.

그렇땐 과감히 맥에서 

sudo rm -rf /Library/Developer/CommandLineTools

명령어로 commandline tools를 삭제하고 재설치 해보면 될때가 있다.

정확한 이유는 모르겠지만 이번에 이런 저런 에러는 이걸로 모두 해결했다.

http, mysql certbot등 아무리 삭제후 재설치해도 정상적으로 사용이 되지 않던것들이 말끔히 해결되었다.

아래는 brew doctor를 실행시켰을때 나오는 메세지.

 

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.1.

hoseongsong@HoSeongui-Macmini homebrew-core % softwareupdate --all --install --force
Software Update Tool

Finding available software
No updates are available.
hoseongsong@HoSeongui-Macmini homebrew-core % sudo rm -rf /Library/Developer/Command
Password:
hoseongsong@HoSeongui-Macmini homebrew-core % sudo xcode-select --install

반응형