Open digoal opened 9 months ago
It looks like you are having trouble building pgrx. Could you help me reproduce this error? It may be an issue with the way pgrx is setup. Maybe try the steps listed here - https://github.com/pgcentralfoundation/pgrx?tab=readme-ov-file#getting-started
Hi @digoal
What's your postgres version ? I hit this isse when I try to build extension for an unsupported Postgres version (16 for example) of pgrx. 0.9.7 seem an old version.
I was able to get past this by installing clang, gcc and g++, along with libicu. I'm not sure which package of the 4 actually solved the problem, but one of them did.
i think the problem manifests itself when one has PG installed independently of pgrx (i had mine installed through brew).
after i uninstalled PG versions i had and did a cargo pgrx init
, things started compiling
small update, you don't need to uninstall your pg, just "package" it like this
cargo pgrx package --no-default-features --features pg16 -c ~/.pgrx/16.4/pgrx-install/bin/pg_config