pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10
Date: Sat, 27 Apr 2019 16:11:06 +0200
Message-ID: <20190427141105.GB2520@elch.exwg.net> (raw)
In-Reply-To: <20190427075849.GA2944@c720-r342378>
References: <20190427075849.GA2944@c720-r342378>

## Matthias Apitz (guru@unixarea.de):

> To get Perl's DBD::Pg compiled now I really do need the pg_config tool,
> but I can't figure out how to get it. I see the following RPM (the ones
> with an 'i' or 'i+' are installed):

Um. Which postgresql10-* packages are that?
SLES12SP4 has "postgresql10" and friends:
Information for package postgresql10:
-------------------------------------
Repository     : SLES12-SP4-Updates
Name           : postgresql10
Version        : 10.6-1.6.1
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/;

And there are the PGDG packages:
cmt@squirrel:/tmp$ rpm -qp --info postgresql10-10.7-1PGDG.sles12.x86_64.rpm
warning: postgresql10-10.7-1PGDG.sles12.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
Name        : postgresql10
Version     : 10.7
Release     : 1PGDG.sles12
Architecture: x86_64
Install Date: (not installed)
Group       : Applications/Databases
Size        : 15066385
License     : PostgreSQL

If you are on a SLES without postgresql10 packages and use the PGDG
packages, you'll find pg_config in the "postgresql10" package (at
least it's in that postgresql10-10.7-1PGDG.sles12.x86_64.rpm I used above,
and the spec file shows the same...), the full path would be
 "/usr/pgsql-10/bin/pg_config".

If you're on SLES12 with Suse's postgresql10 packages, you'll find
pg_config in "postgresql10-devel" - which you only get if you have
activated/installed the "SDK" repositories. The full path for pg_config
with this package is
  "/usr/lib/postgresql10/bin/pg_config".

If you are on a SLES with postgresql10 packages and are mixing that
with the PGDG packages, you might be in a mess. And as far as I know
there's no good way to make sure which packages you get, as zypper
tells me "Repository priorities are without effect. All enabled repositories
share the same priority.".

Regards,
Christoph

-- 
Spare Space





view thread (14+ messages)  latest in thread

Message-ID: <20190427141105.GB2520@elch.exwg.net>
Permalink:  ../20190427141105.GB2520@elch.exwg.net/
Also on:    postgresql.org/message-id/20190427141105.GB2520@elch.exwg.net

 · 

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: cmt@burggraben.net, guru@unixarea.de
  Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10
  In-Reply-To: <20190427141105.GB2520@elch.exwg.net>
  References: <20190427075849.GA2944@c720-r342378> <20190427141105.GB2520@elch.exwg.net>

* 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