참조링크를 따라하며 설치하다가 에러가 발생했다.

  1. 커뮤니티 설치

    brew install mongodb-community@4.4

  2. 에러 발생

    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

  3. gcc 설치

    brew install gcc

  4. 에러 발생

    Error: gcc: the bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with:xcode-select --install

  5. xcode 설치

    xcode-select --install

  6. 다시 커뮤니티 설치

    brew install mongodb-community@4.4

  • gcc를 설치하지 않았는데 성공함(?)
  1. 몽고디비 서비스 시작

    brew services start mongodb-community@4.4

  2. 프로세스 확인

    ps aux | grep -v grep | grep mongod

  3. 몽고 쉘 접속

    mongo

혹시 몰라 남겨두는 카탈리나버전 몽고디비 설치 방법 링크입니다.

profile
https://nibble2.tistory.com/ 둘 중에 어떤 플랫폼을 써야할지 아직도 고민중인 사람

0개의 댓글