From: | Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com> |
---|---|
To: | onurgulsevgi(at)gmail(dot)com |
Cc: | Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>, "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org> |
Subject: | Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc |
Date: | 2013-07-22 19:00:35 |
Message-ID: | CALSLE1NA-NUs4unDFtojnpXzK8tWeXVGv2ZEwGj9zh_vs0c7Yg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
On Mon, Jul 22, 2013 at 8:04 PM, onur gulsevgi <onurgulsevgi(at)gmail(dot)com>wrote:
> I think you're right about the fact that it is possible some of the
> libraries are missing to configure psqlodbc.
>
> Here is the relevant part of the config.log:
> configure:3819: gcc -o conftest -I/usr/local/unixODBC/include -ldl
> conftest.c -L/usr/local/unixODBC/lib -lodbc >&5
>
> configure:3823: $? = 0
>
> configure:3830: ./conftest
>
> ld.so.1: conftest: fatal: libodbc.so.2: open failed: No such file or
> directory
>
> ./configure: line 3832: 5056 Killed ./conftest$ac_cv_exeext
>
> configure:3834: $? = 137
>
> configure:3841: error: in
> `/data11/ora_bosa/bosadb/odbc/psqlodbc-09.02.0100':
>
> configure:3843: error: cannot run C compiled programs.
>
> If you meant to cross compile, use `--host'.
>
Are you running this command?
./configure --prefix=/data11/ora_bosa/bosadb/odbc/driver --without-libpq *
--with-unixodbc=/usr/local/unixODBC*
Is libodbc.so.2 located under */usr/local/unixODBC *directory structure?*
*
If yes then based on log messages looks like it is not finding this library
at run time*. *So try following now:
- add the path where you find libodbc.so.2 to your LD_LIBRARY_PATH env
variable
- export LD_LIBRARY_PATH and then run above configure this time
For example -
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/unixODBC/lib
./configure --prefix=/data11/ora_bosa/bosadb/odbc/driver --without-libpq *
--with-unixodbc=/usr/local/unixODBC*
Regards...
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2013-07-22 20:23:14 | Re: [HACKERS] getting rid of SnapshotNow |
Previous Message | Hiroshi Inoue | 2013-07-20 00:12:45 | Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc |