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@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.klaver@aklaver.com