참조링크를 따라하며 설치하다가 에러가 발생했다.
커뮤니티 설치
brew install mongodb-community@4.4
에러 발생
Error: An exception occurred within a child process:
CompilerSelectionError: mongodb/brew/mongodb-database-tools cannot be built with any available compilers.
Install GNU's GCC:brew install gcc
gcc 설치
brew install gcc
에러 발생
Error: gcc: the bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with:xcode-select --install
xcode 설치
xcode-select --install
다시 커뮤니티 설치
brew install mongodb-community@4.4
몽고디비 서비스 시작
brew services start mongodb-community@4.4
프로세스 확인
ps aux | grep -v grep | grep mongod
몽고 쉘 접속
mongo
혹시 몰라 남겨두는 카탈리나버전 몽고디비 설치 방법 링크입니다.