powa-team / pg_qualstats

A PostgreSQL extension for collecting statistics about predicates, helping find what indices are missing
Other
272 stars 26 forks source link

Can not install pg_qualstats on ubuntu. #27

Closed darshansh closed 4 years ago

darshansh commented 4 years ago

Hello, on my ubuntu machine postgresql 10 is installed. I tried to install pg_qualstats using below url. https://powa.readthedocs.io/en/latest/components/stats_extensions/pg_qualstats.html

I got below error. pg_qualstats.c:27:22: fatal error: postgres.h: No such file or directory compilation terminated.

: recipe for target 'pg_qualstats.o' failed make: *** [pg_qualstats.o] Error 1 Could any one suggest what to do in this case ?
rjuju commented 4 years ago

Hello,

The installation part starts with various requirements documented in the quickstart. Did you install the postgresql-server-dev-10 package as mentioned in https://powa.readthedocs.io/en/latest/quickstart.html#installation-of-the-postgresql-extensions?

darshansh commented 4 years ago

Thanks Julien Rouhaud. Your comments help me. I configured it and now it is working ok.