pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: GPT <gptmailinglists@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to declare PG version for compiling extensions.
Date: Tue, 23 Oct 2018 10:17:43 +0100
Message-ID: <8736sx81vk.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CADep2PPyZ_92g=LZMzsaNZVwDwveVOj9Mv8xweFL9SDZusLEpQ@mail.gmail.com>
References: <CADep2PPaDW-7pFhSEgQina_P5x2anrV3Qxv7xq3zXkEhk25S=w@mail.gmail.com>
	<CADep2PPyZ_92g=LZMzsaNZVwDwveVOj9Mv8xweFL9SDZusLEpQ@mail.gmail.com>

>>>>> "GPT" == GPT  <gptmailinglists@gmail.com> writes:

 GPT> Unfortunately, I had not installed the following package:
 GPT> "postgresql-server-dev-11"

 GPT> By the way, shouldn't a warning message appear while trying to run:

 GPT> `PATH=/usr/lib/postgresql/11/bin:$PATH make USE_PGXS=1`

 GPT> warning the user that some files are missing.

It's more reliable to do (if the makefile is correctly written):

make USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/11/bin/pg_config

By specifying the pg_config binary explicitly rather than relying on the
PATH, you avoid the chance of picking up an incorrect copy by mistake.
This is why the standard form for pgxs makefiles has an assignment for
PG_CONFIG before the PGXS assignment line; the command-line option
overrides it.

-- 
Andrew (irc:RhodiumToad)




view thread (5+ messages)

Message-ID: <8736sx81vk.fsf@news-spur.riddles.org.uk>
Permalink:  ../8736sx81vk.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/8736sx81vk.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, gptmailinglists@gmail.com
  Subject: Re: How to declare PG version for compiling extensions.
  In-Reply-To: <8736sx81vk.fsf@news-spur.riddles.org.uk>
  References: <CADep2PPaDW-7pFhSEgQina_P5x2anrV3Qxv7xq3zXkEhk25S=w@mail.gmail.com> <CADep2PPyZ_92g=LZMzsaNZVwDwveVOj9Mv8xweFL9SDZusLEpQ@mail.gmail.com> <8736sx81vk.fsf@news-spur.riddles.org.uk>

* 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