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

Mac OS X: could not compile webapp-backend: library not found for -lpq #1390

Open
jgeluk opened this issue Jan 2, 2021 · 2 comments
Open

Comments

@jgeluk
Copy link

jgeluk commented Jan 2, 2021

git clone git@github.com:saschagrunert/webapp.rs.git
cd webapp.rs
make all

on Mac OS X gives:

 = note: ld: library not found for -lpq
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          
error: aborting due to previous error

error: could not compile `webapp-backend`

To learn more, run the command again with --verbose.
make: *** [build-backend] Error 101
@jgeluk
Copy link
Author

jgeluk commented Jan 2, 2021

brew install postgresql helps :-)

Would be good to have the Makefile do some checks?

@jaques-sam
Copy link

Just for info: on Linux you need to install the lib too: sudo apt-get install libpq-dev

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

No branches or pull requests

2 participants