brew安装postgresql@15

% brew install -s postgresql@15
Running `brew update --auto-update`...
==> Fetching postgresql@15
==> Downloading https://ftp.postgresql.org/pub/source/v15.1/postgresql-15.1.tar.bz2
#                                                                          2.0%
######################################################################## 100.0%
==> ./configure --prefix=/opt/homebrew/Cellar/postgresql@15/15.1 --libdir=/opt/homebrew/Cellar/postgresql@15/15.1/lib --datadir=/opt/homebrew/opt/postgresql@15/share/postgresql@15 --libdir=/opt/homebrew/o
==> make pkglibdir=/opt/homebrew/opt/postgresql@15/lib/postgresql pkgincludedir=/opt/homebrew/opt/postgresql@15/include/postgresql includedir_server=/opt/homebrew/opt/postgresql@15/include/postgresql/serv
==> make install-world datadir=/opt/homebrew/Cellar/postgresql@15/15.1/share/postgresql@15 libdir=/opt/homebrew/Cellar/postgresql@15/15.1/lib pkglibdir=/opt/homebrew/Cellar/postgresql@15/15.1/lib/postgres
==> /opt/homebrew/Cellar/postgresql@15/15.1/bin/initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@15
==> Caveats
This formula has created a default database cluster with:
  initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@15
For more details, read:
  https://www.postgresql.org/docs/15/app-initdb.html

postgresql@15 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have postgresql@15 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"' >> ~/.zshrc

For compilers to find postgresql@15 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/postgresql@15/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/postgresql@15/include"


To restart postgresql@15 after an upgrade:
  brew services restart postgresql@15
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/postgresql@15/bin/postgres -D /opt/homebrew/var/postgresql@15
==> Summary
🍺  /opt/homebrew/Cellar/postgresql@15/15.1: 3,345 files, 44.9MB, built in 1 minute 34 seconds
==> Running `brew cleanup postgresql@15`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/admin/Library/Logs/Homebrew/pkg-config... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/tree... (3 files, 11.3KB)
Removing: /Users/admin/Library/Logs/Homebrew/libidn2... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/postgresql@14... (9 files, 5.8MB)
Removing: /Users/admin/Library/Logs/Homebrew/rtmpdump... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/libunistring... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/brotli... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/icu4c... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/readline... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/lz4... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/xz... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/libnghttp2... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/curl... (7 files, 2.2MB)
Removing: /Users/admin/Library/Logs/Homebrew/krb5... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/openssl@3... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/ca-certificates... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/gettext... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/libssh2... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/zstd... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/openssl@1.1... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/openldap... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/telnet... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/lrzsz... (8 files, 140.3KB)
Pruned 0 symbolic links and 4 directories from /opt/homebrew

 

 
posted @ 2024-06-06 09:45  JeromePowell  阅读(1)  评论(0编辑  收藏  举报