Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10

From: Matthias Apitz <guru(at)unixarea(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10
Date: 2019-04-27 14:11:15
Message-ID: 20190427141115.GA6004@c720-r342378
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

El día sábado, abril 27, 2019 a las 02:39:54p. m. +0100, Andrew Gierth escribió:

> >>>>> "Matthias" == Matthias Apitz <guru(at)unixarea(dot)de> writes:
>
> Matthias> There is no cmd 'pg_config'. Can I compile this from source?
>
> Some distros separate out a 'libpq' package, and have a 'libpq-devel'
> package with pg_config in it. Did you look for that?

Yes, it isn't there either. Meanwhile I wrote my own 'pg_config' as:

$ cat /opt/bin/pg_config
#!/bin/sh

test $1 = '--version' && echo 'PostgreSQL 10.4'
test $1 = '--bindir' && echo '/usr/pgsql-10/bin'
test $1 = '--configure' && echo ''
exit 0

and with this the building went fine:

$ /usr/local/sisis-pap/perlbrew/bin/cpanm DBD::Pg
--> Working on DBD::Pg
Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.8.0.tar.gz ... OK
Configuring DBD-Pg-3.8.0 ... OK
Building and testing DBD-Pg-3.8.0 ... OK
Successfully installed DBD-Pg-3.8.0
1 distribution installed

matthias

--
Matthias Apitz, ✉ guru(at)unixarea(dot)de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-04-27 14:11:16 Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10
Previous Message Christoph Moench-Tegeder 2019-04-27 14:11:06 Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10