Skip to content

Instantly share code, notes, and snippets.

@fahadsiddiqui
Created March 16, 2021 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahadsiddiqui/4229a631a8a52174bec8e52483602932 to your computer and use it in GitHub Desktop.
Save fahadsiddiqui/4229a631a8a52174bec8e52483602932 to your computer and use it in GitHub Desktop.

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment