Editing Brew install postgresql@16
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
postgresql@16 is [[keg-only]], which means it was not symlinked into /Users/user/brew, | postgresql@16 is [[keg-only]], which means it was not symlinked into /Users/user/brew, | ||
because this is an alternate version of another formula. | because this is an alternate version of another formula. | ||
− | + | <pre> | |
− | + | If you need to have postgresql@16 first in your PATH, run: | |
− | + | echo 'export PATH="/Users/user/brew/opt/postgresql@16/bin:$PATH"' >> ~/.zshrc | |
− | + | ||
− | + | For compilers to find postgresql@16 you may need to set: | |
export LDFLAGS="-L/Users/user/brew/opt/postgresql@16/lib" | export LDFLAGS="-L/Users/user/brew/opt/postgresql@16/lib" | ||
export CPPFLAGS="-I/Users/user/brew/opt/postgresql@16/include" | export CPPFLAGS="-I/Users/user/brew/opt/postgresql@16/include" | ||
− | + | ||
− | + | For pkg-config to find postgresql@16 you may need to set: | |
export PKG_CONFIG_PATH="/Users/user/brew/opt/postgresql@16/lib/pkgconfig" | export PKG_CONFIG_PATH="/Users/user/brew/opt/postgresql@16/lib/pkgconfig" | ||
− | + | ||
− | + | To start postgresql@16 now and restart at login: | |
− | + | brew services start postgresql@16 | |
− | + | Or, if you don't want/need a background service you can just run: | |
− | + | LC_ALL="C" /Users/user/brew/opt/postgresql@16/bin/postgres -D /Users/user/brew/var/postgresql@16 | |
− | + | ==> Summary | |
− | + | 🍺 /Users/user/brew/Cellar/postgresql@16/16.1_1: 3,796 files, 67.4MB, built in 1 minute 18 seconds | |
+ | </pre> | ||
Advertising: