First run the one below to be able to install pg_config
brew install postgresql
Install openssl
brew link openssl
Warning: Refusing to link macOS provided/shadowed software: openssl@1.1 If you need to have
openssl@1.1
first in your PATH, run:echo 'export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find
openssl@1.1
you may need to set:export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib" export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
For pkg-config to find
openssl@1.1
you may need to set:export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig"