Re: What generates pg_config.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Travis Allison <travisallison(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: What generates pg_config.h?
Date: 2018-01-05 20:15:30
Message-ID: 11375.1515183330@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Travis Allison <travisallison(at)gmail(dot)com> writes:
> Distro and version: Ubuntu 16.04 LTS.
> If memory serves, I installed 9.5 using synaptic and 9.6 using apt-get,
> where I followed the instructions from this site:
> https://www.postgresql.org/download/linux/ubuntu/

> I also have an anaconda installation of postgresql, but that is a version
> less than 9.6.

Well, this bit:

>>> /usr/include/postgresql/pg_config.h:733:0: warning: "PACKAGE_VERSION" redefined
>>> #define PACKAGE_VERSION "10.0"

is proof positive that you've got at least some pieces of a v10
installation as well. The location of the file (i.e., not under a
version-named subdirectory, like the others) suggests that that
installation was not aware of the conventions Ubuntu's packagers
like to use to separate different PG versions from each other.
And the lack of any relevant entry in the dpkg output suggests it didn't
come from any of your normal packages, either. I'm wondering about an
ill-advised manual installation from raw PG source code, for instance.

Did you check whether this file is associated with any dpkg-installed
package? (Not being an Ubuntu user, I don't know how to do that,
but I'm sure they have an equivalent of "rpm -qf".)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-01-05 20:19:13 Re: What generates pg_config.h?
Previous Message Travis Allison 2018-01-05 19:57:18 Re: What generates pg_config.h?