Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install postgres 17.2 on OSX Sequoia #95

Open
er-jpg opened this issue Nov 29, 2024 · 2 comments
Open

Unable to install postgres 17.2 on OSX Sequoia #95

er-jpg opened this issue Nov 29, 2024 · 2 comments
Labels

Comments

@er-jpg
Copy link

er-jpg commented Nov 29, 2024

Describe the bug

I'm getting an error about the error: library 'crypto' is required for OpenSSL, even if following the instructions on the README.md file.

Steps to reproduce

  1. Using macOS Sequoia 15.1.1
  2. Install the packages with brew using the command brew install gcc readline zlib curl ossp-uuid icu4c pkg-config
  3. Exporting the environment variables with export PKG_CONFIG_PATH="/opt/homebrew/bin/pkg-config:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix zlib)/lib/pkgconfig"
  4. Running the command to add the plugin asdf plugin-add postgres
  5. Then running the command to add the plugin with the version asdf install postgres 17.2 you get the following error when compiling
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

Expected behavior

It is expected for the installation of the plugin to pass.

@er-jpg er-jpg added the bug label Nov 29, 2024
@smashedtoatoms
Copy link
Owner

Take a look at this thread and see if any of it works. OpenSSL is such a tire fire I can't keep up with it: #52

@er-jpg
Copy link
Author

er-jpg commented Nov 29, 2024

Thank you! That worked, what do you think about adding the command at the end in the documentation?

brew install gcc icu4c readline zlib curl ossp-uuid pkg-config
asdf plugin-add postgres
export OPENSSL_PATH=$(brew --prefix openssl)
export CMAKE_PREFIX_PATH=$(brew --prefix icu4c)
export PATH="$OPENSSL_PATH/bin:$CMAKE_PREFIX_PATH/bin:$PATH"
export LDFLAGS="-L$OPENSSL_PATH/lib $LDFLAGS"
export CPPFLAGS="-I$OPENSSL_PATH/include $CPPFLAGS"
export PKG_CONFIG_PATH="$CMAKE_PREFIX_PATH/lib/pkgconfig"
asdf install postgres 17.2

This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants