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

Suggested addition to readme for building on mac with libpq installed from brew #304

Open
eddspark opened this issue Jul 3, 2024 · 0 comments

Comments

@eddspark
Copy link

eddspark commented Jul 3, 2024

Problem
Building from source on M2 mac doesn't work without linking the libpq libraries manually.

Improvement
Add the following suggested CMAKE flags when using brew to install libpq and postgresql

mkdir build
cd build
cmake ..  -DPOSTGRESQL_INCLUDE_DIR:PATH=/opt/homebrew/opt/libpq/include -DPOSTGRESQL_LIBRARIES=/opt/homebrew/opt/libpq/lib/libpq.dylib 

This might help people as finding the locations for the libraries took a bit of time

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

No branches or pull requests

1 participant