Skip site navigation (1) Skip section navigation (2)

Re: error compiling psqlodbc-08.04.0200 under red hat 5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pierangelo Russo <pierangelo(dot)russo(at)ita(dot)sas(dot)com>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: error compiling psqlodbc-08.04.0200 under red hat 5
Date: 2010-05-14 21:50:47
Message-ID: 11211.1273873847@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-odbc
Pierangelo Russo <pierangelo(dot)russo(at)ita(dot)sas(dot)com> writes:
> I need help to compile psqlodbc-08.04.0200 under red hat 5,
> I have unix odbc org driver manager and I got this error:

> configure:2606: checking for C compiler default output file name
> configure:2609: gcc   -I/sas/software/odbc/include  conftest.c  -L/sas/software/odbc/lib -lodbc >&5
> configure:2612: $? = 0
> configure:2658: result: a.out
> configure:2663: checking whether the C compiler works
> configure:2669: ./a.out
> ./a.out: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory

The -I and -L switches probably should have not been in that command,
and the -l switch definitely should not have been.  It looks like they
came from here:

> CPPFLAGS=' -I/sas/software/odbc/include'
> LIBS=' -L/sas/software/odbc/lib -lodbc'

Were you setting those variables in configure's environment?  If so,
don't.

			regards, tom lane

In response to

pgsql-odbc by date

Next:From: Phil BrierleyDate: 2010-05-16 19:45:46
Subject: ADO - adSchemaColumns doesn't seem to work.
Previous:From: Pierangelo RussoDate: 2010-05-14 16:03:47
Subject: error compiling psqlodbc-08.04.0200 under red hat 5

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group