From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | GPT <gptmailinglists(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to declare PG version for compiling extensions. |
Date: | 2018-10-22 14:02:56 |
Message-ID: | 82978.1540216976@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
GPT <gptmailinglists(at)gmail(dot)com> writes:
> Both PG versions 10.5 and 11 are installed.
> I have been trying to compile extensions for PG11 by using:
> PATH=/.../11/bin:PATH make USE_...
> but unfortunately PG10 is always being used (the `make` output always
> shows PG10 and refers to `pg_config`).
> 1) Does it have to do with pg_config?
If you're using PGXS, then yes, your makefile should be querying
pg_config to find out where Postgres' headers etc are installed.
You might want to check whether "pg_config --pgxs" points to the
correct place. Also make sure your makefile is indeed doing
something like
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
and not just hard-wiring where to look.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Scot Kreienkamp | 2018-10-22 14:04:19 | RE: Replication question |
Previous Message | Adrian Klaver | 2018-10-22 13:57:55 | Re: How to declare PG version for compiling extensions. |