Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc - Mailing list pgsql-odbc

From Dev Kumkar
Subject Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc
Date
Msg-id CALSLE1NA-NUs4unDFtojnpXzK8tWeXVGv2ZEwGj9zh_vs0c7Yg@mail.gmail.com
Whole thread Raw
In response to configure: error: unixODBC library "odbcinst" not found while trying to compile odbc  (onur gulsevgi <ogulsevgi@gmail.com>)
Responses Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc
List pgsql-odbc
On Mon, Jul 22, 2013 at 8:04 PM, onur gulsevgi <onurgulsevgi@gmail.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...

pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Fwd: configure: error: unixODBC library "odbcinst" not found while trying to compile odbc
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] getting rid of SnapshotNow