From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Travis Allison <travisallison@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: floriparob@gmail.com
Cc: pgsql-general@postgresql.org
Cc: Christoph Berg <myon@debian.org>
Subject: Re: What generates pg_config.h?
Date: Fri, 5 Jan 2018 15:40:06 -0800
Message-ID: <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com> (raw)
In-Reply-To: <22433.1515194991@sss.pgh.pa.us>
References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql>
<20599.1515192990@sss.pgh.pa.us>
<CAEJ64tb7j1XR009TVfaEeh1=gkRgZ5vJ=sqfQ3WFg38YDBm5dw@mail.gmail.com>
<22433.1515194991@sss.pgh.pa.us>
On 01/05/2018 03:29 PM, Tom Lane wrote:
> Travis Allison <travisallison@gmail.com> writes:
>> Tom, where's the -l switch exactly? What command is it attached to? (I'm
>> not sure what to look for.)
>
> Look into the extension's Makefile for something roughly along the lines
> of
Assuming the OP is talking about this:
https://github.com/timescale/timescaledb
I believe there is an intervening step:
# Bootstrap the build system
./bootstrap
If I am following correctly the -I are in:
CMakeLists.txt
# Get PostgreSQL configuration from pg_config
execute_process(
COMMAND ${PG_CONFIG} --includedir
OUTPUT_VARIABLE PG_INCLUDEDIR
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(
COMMAND ${PG_CONFIG} --includedir-server
OUTPUT_VARIABLE PG_INCLUDEDIR_SERVER
OUTPUT_STRIP_TRAILING_WHITESPACE)
There does seem to be an apt install:
http://docs.timescale.com/v0.8/getting-started/installation/linux/installation-apt
with the following caveats:
"
Note: PostgreSQL 9.6 is required for TimescaleDB on Ubuntu distros.
Releases with PostgreSQL 10 are coming soon
Prerequisites
Ubuntu 16.04 or later
Build & Install
WARNING:If you have another PostgreSQL installation not via apt,
this will likely cause problems. If you wish to maintain your current
version of PostgreSQL outside of apt, we recommend installing from
source. Otherwise please be sure to remove non-apt installations before
using this method.
"
>
> CPPFLAGS = -I/usr/include/postgresql
>
> Very likely there's some amount of macro-ization involved, so it might
> look more like
>
> INCLUDEDIR = /usr/include/postgresql
> ...
> CPPFLAGS = -I$(INCLUDEDIR)
>
> Furthermore, given our current theory, there's going to be more than
> one -I switch on that line, and you want to get rid of just one.
>
> regards, tom lane
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, travisallison@gmail.com, alvherre@alvh.no-ip.org, floriparob@gmail.com, myon@debian.org
Subject: Re: What generates pg_config.h?
In-Reply-To: <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com>
References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us> <CAEJ64tb7j1XR009TVfaEeh1=gkRgZ5vJ=sqfQ3WFg38YDBm5dw@mail.gmail.com> <22433.1515194991@sss.pgh.pa.us> <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com>
* 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