반응형

postgresql

안녕하세요.

즐거운 우리집 (https://joyfulhome.tistory.com/) 입니다.

 

오늘은 간반에 오류에 대한 해결 방법을 공유 드릴까 합니다.

사실은 신규 PC 에서 설치하는데 안되서 혹시나 같은 오류 발생시 도움이 되실까 하고 올려드려요 ^^

 

그럼 어떤 오류일까요?

 

brew 로 postgresql 을 설치 하려고 합니다.

그런데 아래와 같은 오류가 나타나네요...

 

오류내용

joyfulhome % brew install postgresql
Warning: No available formula with the name "homebrew/core/postgresql".
Please tap it and then try again: brew tap homebrew/core

 

이 오류는 Homebrew의 기본 저장소에서 PostgreSQL을 찾을 수 없기 때문에 발생합니다. 

주어진 메시지를 따라 brew tap homebrew/core 명령을 입력한 하면 됩니다.

이렇게 하면 Homebrew가 homebrew/core 저장소를 열어 최신 버전의 PostgreSQL을 찾을 수 있습니다.

 

반응형

 

 

해결방법

brew tap homebrew/core

 

자~ 

그러면 한 번 해당 해결방법으로 시도해 볼까요?

터미널에서 'brew tap homebrew/core' 를 입력하면 됩니다.

 

 

사용방법

joyfulhome % brew tap homebrew/core
Warning: Tapping homebrew/core is no longer typically necessary.
Add --force if you are sure you need one.
==> Tapping homebrew/core
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1551718, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 1551718 (delta 25), reused 26 (delta 12), pack-reused 1551671
Receiving objects: 100% (1551718/1551718), 406.34 MiB | 9.16 MiB/s, done.
Resolving deltas: 100% (1089408/1089408), done.
Tapped 3 commands and 6776 formulae (7,145 files, 465.1MB).
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#=#=-  #       #   

 

성공하였습니다.

다시 처음의 명령어로 설치하면 성공적으로 설치됨을 확인해 보실 수 있습니다.

 

오류 해결 후 정상 실행화면

joyfulhome %  brew install postgresql
Warning: Formula postgresql was renamed to postgresql@14.
Warning: Formula postgresql was renamed to postgresql@14.
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #        #                                                                                                                                                                                                                                           
==> Fetching dependencies for postgresql@14: krb5 and readline
==> Fetching krb5
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.21.1
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #        #                                                                                                                                                                                                                                           -#O=- #      #          #                                                                                                                                                                                                         ######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/blobs/sha256:fa17fb49aa0363f2de649bd8b6ca370d3a97dee5e7299bc07e6b7b344d4ccc59
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #        #                                                                                                                                                                                                                                           -#O=- #      #          #                                                                                                                                                                                                         ######################################################################################################################################################################################################################################################### 100.0%
==> Fetching readline
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.1
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:fba42a9bd6feaa8902ae4491ffdf177662e0a165a0d0ddef0988ad6ecf0f23dd
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #        #                                                                                                                                                                                                                                           -#O=- #      #          #                                                                                                                                                                                                         ######################################################################################################################################################################################################################################################### 100.0%                            
==> Fetching postgresql@14
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/14/manifests/14.8_2
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/14/blobs/sha256:606bce40d417b332cf842a44018155ee10010c9b800eeefc41c80333b6d4cc62
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #        #                                                                                                                                                                                                                                           -#O=- #      #          #                                                                                                                                                                                                         ######################################################################################################################################################################################################################################################### 100.0%                            
==> Installing dependencies for postgresql@14: krb5 and readline
==> Installing postgresql@14 dependency: krb5
==> Pouring krb5--1.21.1.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/krb5/1.21.1: 162 files, 5.6MB
==> Installing postgresql@14 dependency: readline
==> Pouring readline--8.2.1.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/readline/8.2.1: 50 files, 1.7MB
==> Installing postgresql@14
==> Pouring postgresql@14--14.8_2.arm64_ventura.bottle.tar.gz
==> /opt/homebrew/Cellar/postgresql@14/14.8_2/bin/initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@14
==> Caveats
This formula has created a default database cluster with:
  initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@14
For more details, read:
  https://www.postgresql.org/docs/14/app-initdb.html

To start postgresql@14 now and restart at login:
  brew services start postgresql@14
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/postgresql@14/bin/postgres -D /opt/homebrew/var/postgresql@14
==> Summary
🍺  /opt/homebrew/Cellar/postgresql@14/14.8_2: 3,315 files, 45.3MB
==> Running `brew cleanup postgresql@14`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> postgresql@14
This formula has created a default database cluster with:
  initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@14
For more details, read:
  https://www.postgresql.org/docs/14/app-initdb.html

To start postgresql@14 now and restart at login:
  brew services start postgresql@14
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/postgresql@14/bin/postgres -D /opt/homebrew/var/postgresql@14
joyfulhome % 

 

 

그럼 도움이 되시길 바라며...

 

즐거운 하루 되세요~ ^^

 

반응형