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

Solution: No such file "postgres.h" when compiling #10

Open
davehouser1 opened this issue Jul 5, 2021 · 0 comments
Open

Solution: No such file "postgres.h" when compiling #10

davehouser1 opened this issue Jul 5, 2021 · 0 comments

Comments

@davehouser1
Copy link

davehouser1 commented Jul 5, 2021

If you get this error on Kali or debian based systems:

lib_postgresqludf_sys.c:34:10: fatal error: postgres.h: No such file or directory
   34 | #include <postgres.h>
      |          ^~~~~~~~~~~~
compilation terminated.

Need to install postgres dev package.
Run the following where "XXX" is the version available to install from apt:

sudo apt-cache search postgresql-server-dev
sudo apt install postgresql-server-dev-XXX

Also run the following to locate where the file is after install
find / -name "postgres.h" -print 2>/dev/null

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

1 participant