Re: attempting to install tds_fw-master on redhat

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "'Mammarelli, Joanne T *EXTERN*'" <joanne(dot)t(dot)mammarelli(at)verizon(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: attempting to install tds_fw-master on redhat
Date: 2015-11-11 14:30:13
Message-ID: 564350F5.4020902@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/11/2015 05:06 AM, Albe Laurenz wrote:
> Mammarelli, Joanne T wrote:
>> Installed postgresql-devel .. getting closer ..
>>
>> Installed Packages
>> postgresql.x86_64 9.2.13-1.el7_1 @rhel7-x86_64-2015-07
>> postgresql-devel.x86_64 9.2.13-1.el7_1 @rhel-x86_64-server-7
>> postgresql-libs.x86_64 9.2.13-1.el7_1 @rhel7-x86_64-2015-07
>> postgresql-server.x86_64 9.2.13-1.el7_1 @rhel-x86_64-server-7
>>
>> Installed Packages
>> freetds.x86_64 0.91-12.git0a42888.el7 @rhel-x86_64-server-7-epel
>> freetds-devel.x86_64 0.91-12.git0a42888.el7 @rhel-x86_64-server-7-epel
>>
>>
>> [root(at)scsblnx-994457 tds_fdw-master]# make USE_PGXS=1

Well the command in the instructions is:

PATH=/usr/pgsql-9.4/bin:$PATH make USE_PGXS=1

substitute your Postgres version for the one above.

My guess is it is looking for pg_config.

You can test before building by trying from the command line:

pg_config --help

and if that does not work then:

PATH=/usr/pgsql<version>/bin:$PATH pg_config --help

>> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-sc
>> src/tds_fdw.c:30:33: fatal error: access/htup_details.h: No such file or directy
>> #include "access/htup_details.h"
>> ^
>> compilation terminated.
>> make: *** [src/tds_fdw.o] Error 1
>
> Looks like you are using a PostgreSQL version older than 9.3.
>
> Did you check the README for the supported PostgreSQL versions?

Well the site:

https://github.com/GeoffMontee/tds_fdw

says 'This should support PostgreSQL 9.1+'.
>
> Yours,
> Laurenz Albe
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message taspotts 2015-11-11 14:37:22 Re: Best tool to pull from mssql
Previous Message Albe Laurenz 2015-11-11 13:06:05 Re: attempting to install tds_fw-master on redhat