• 카테고리

    질문 & 답변
  • 세부 분야

    데이터베이스

  • 해결 여부

    미해결

brew install mongodb 설치 에러

22.05.20 15:33 작성 조회수 1.1k

0

brew install mongodb 실행후 다음같은 에러가 나옵니다.

 

WWarning: No available formula with the name "mongodb". Did you mean mongosh or monetdb?

==> Searching for similarly named formulae...

These similarly named formulae were found:

mongodb-atlas-cli                       mongodb/brew/mongodb-community@4.2

mongodb/brew/libmongocrypt               mongodb/brew/mongodb-community@4.4

mongodb/brew/mongocli                    mongodb/brew/mongodb-database-tools

mongodb/brew/mongodb-community         mongodb/brew/mongodb-mongocryptd

mongodb/brew/mongodb-community-shell     mongodb/brew/mongodb-mongocryptd@4.2

mongodb/brew/mongodb-community@3.2       mongodb/brew/mongodb-mongocryptd@4.4

mongodb/brew/mongodb-community@3.4       mongosh

mongodb/brew/mongodb-community@3.6       monetdb

mongodb/brew/mongodb-community@4.0

To install one of them, run (for example):

  brew install mongodb-atlas-cli

==> Searching for a previously deleted formula (in the last month)...

Error: No previously deleted formula found.

 

mongodb 설치가 잘 안되어서 ubuntu에서 mongodb 설치시 에러가 나오는 건지도 궁금합니다. 해결 방법 좀 부탁드리겠습니다.

답변 1

답변을 작성해보세요.

0

안녕하세요.

 

설치 방법이 조금씩 변경되는 경우가 있는 것 같긴 한데요.

우선 맥에서 설치하시는 것이 맞죠? brew 는 맥에서 설치하는 명령이고요.

에러 메세지를 보면, mongodb 를 포함한 다양한 버전으로 기재를 해보라고 한 것 같습니다.

 

brew install mongodb-community@5.0

또는 에러 메시지처럼 

brew install mongodb-community@4.0 (아마 5.0도 또 있을 꺼예요)

 

와 같이 설치해보시면 어떠실까요?

공식 mongodb 설치 메뉴얼도 현재는 다음과 같은 방식을 추천하고 있는데요

brew install mongodb-community@5.0

 

그 전에 PC 환경에 따라, 여러가지 설치할 수도 있으니, 공식 매뉴얼도 한번 참고해보시면 좋을 것 같습니다.

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/

 

감사합니다.

ohwhy님의 프로필

ohwhy

질문자

2022.05.21

이미 설치가 되어 있다고 하는데.. 아래처럼 mongodb 실행 명령어 에러가 나옵니다.

Ubuntu에서 mongodb 설치도 하루 고생해서 해결 했는데.. 여기서 문제가 생겨 진도를 못 나가네요 ㅠㅜ

(base) Ohyoungui-MacBookPro:~ ohyoungkang$ brew install mongodb-community@5.0

Warning: mongodb/brew/mongodb-community 5.0.7 is already installed and up-to-date.

To reinstall 5.0.7, run:

  brew reinstall mongodb-community

(base) Ohyoungui-MacBookPro:~ ohyoungkang$ brew services start mongodb

Error: No available formula with the name "mongodb". Did you mean mongosh or monetdb?