Re: error compiling psqlodbc-08.04.0200 under red hat 5

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error compiling psqlodbc-08.04.0200 under red hat 5
Дата
Msg-id 11211.1273873847@sss.pgh.pa.us
обсуждение исходный текст
Ответ на error compiling psqlodbc-08.04.0200 under red hat 5  (Pierangelo Russo <pierangelo.russo@ita.sas.com>)
Список pgsql-odbc
Pierangelo Russo <pierangelo.russo@ita.sas.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

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Pierangelo Russo
Дата:
Сообщение: error compiling psqlodbc-08.04.0200 under red hat 5
Следующее
От: Phil Brierley
Дата:
Сообщение: ADO - adSchemaColumns doesn't seem to work.