pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: GPT <gptmailinglists@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to declare PG version for compiling extensions.
Date: Mon, 22 Oct 2018 10:02:56 -0400
Message-ID: <82978.1540216976@sss.pgh.pa.us> (raw)
In-Reply-To: <CADep2PPaDW-7pFhSEgQina_P5x2anrV3Qxv7xq3zXkEhk25S=w@mail.gmail.com>
References: <CADep2PPaDW-7pFhSEgQina_P5x2anrV3Qxv7xq3zXkEhk25S=w@mail.gmail.com>

GPT <gptmailinglists@gmail.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




view thread (5+ messages)  latest in thread

Message-ID: <82978.1540216976@sss.pgh.pa.us>
Permalink:  ../82978.1540216976@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/82978.1540216976@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gptmailinglists@gmail.com
  Subject: Re: How to declare PG version for compiling extensions.
  In-Reply-To: <82978.1540216976@sss.pgh.pa.us>
  References: <CADep2PPaDW-7pFhSEgQina_P5x2anrV3Qxv7xq3zXkEhk25S=w@mail.gmail.com> <82978.1540216976@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox