pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedGetting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
6+ messages / 3 participants
[nested] [flat]
* Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-16 09:04 Jaydip <jaydeep.thakkar92@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Jaydip @ 2018-07-16 09:04 UTC (permalink / raw)
To: pgsql-odbc
Hello,
I am trying to install PostgreSQL ODBC drivers in SuSE Linux 12.0 SP1 where
I am getting following error:
configure: error: unixODBC library "odbcinst" not found
I am able to see below libraries though under usr/lib64
libodbcinst.so.2 -> libodbcinst.so.2.0.0
libodbcinst.so.2.0.0
I did set the LD_LIBRARY_PATH to /usr/lib64 and set LDFLAGS=-ldl too.
However while executing below command I am getting an error:
./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10/data
I have tried to change --with-unixodbc multiple times but getting same
error. I also had a look into other posts but didn't work for me.
Any help will really be appreciated.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-odbc-f2186591.html
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-16 10:53 Clemens Ladisch <clemens@ladisch.de>
parent: Jaydip <jaydeep.thakkar92@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2018-07-16 10:53 UTC (permalink / raw)
To: pgsql-odbc@lists.postgresql.org
Jaydip wrote:
> I am trying to install PostgreSQL ODBC drivers in SuSE Linux 12.0 SP1 where
> I am getting following error:
> configure: error: unixODBC library "odbcinst" not found
The configure script checks first for the odbc_config tool in the path;
apparently, this succeeded.
It then checks for the odbcinst library using the default or configured
compiler/linker settings.
> ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10/data
If unixODBC is installed at the default locations, just "--with-unixodbc"
without a value should work.
Regards,
Clemens
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-16 12:11 Jaydip <jaydeep.thakkar92@gmail.com>
parent: Clemens Ladisch <clemens@ladisch.de>
0 siblings, 2 replies; 6+ messages in thread
From: Jaydip @ 2018-07-16 12:11 UTC (permalink / raw)
To: pgsql-odbc
I installed ODBC using below command:
*zypper install unixODBC.x86_64* where odbcinst library is in /usr/lib64 and
odbc_config is there in /usr/bin. The odbcinst.ini and odbc.ini files exists
in /etc/unixODBC folder, however both files are of 0 byte size.
The output of command: ls -l /usr/lib64/*odbc*
lrwxrwxrwx 1 root root 16 Jul 16 16:49 /usr/lib64/libodbc.so.2 ->
libodbc.so.2.0.0
-rwxr-xr-x 1 root root 423752 Sep 21 2014 /usr/lib64/libodbc.so.2.0.0
lrwxrwxrwx 1 root root 18 Jul 16 16:49 /usr/lib64/libodbccr.so.2 ->
libodbccr.so.2.0.0
-rwxr-xr-x 1 root root 43216 Sep 21 2014 /usr/lib64/libodbccr.so.2.0.0
lrwxrwxrwx 1 root root 20 Jul 16 16:49 /usr/lib64/libodbcinst.so.2 ->
libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root 76656 Sep 21 2014 /usr/lib64/libodbcinst.so.2.0.0
I tried --with-unixodbc without any value but still getting same error. I
did set LDFLAGS to -ldl as mentioned in one of post but still seeing same
error.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-odbc-f2186591.html
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-16 18:57 Clemens Ladisch <clemens@ladisch.de>
parent: Jaydip <jaydeep.thakkar92@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Clemens Ladisch @ 2018-07-16 18:57 UTC (permalink / raw)
To: pgsql-odbc@lists.postgresql.org
Jaydip wrote:
> I installed ODBC using below command:
> *zypper install unixODBC.x86_64* where odbcinst library is in /usr/lib64 and
> odbc_config is there in /usr/bin.
>
> I tried --with-unixodbc without any value but still getting same error.
Please try to compile (but not run) the following test program
(with "gcc -o testprogram testprogram.c -l odbcinst"):
--8<--------------------------------------------------------->8--
#include <odbcinst.h>
int main()
{
SQLGetPrivateProfileString("", "", "", "", 0, "");
}
--8<--------------------------------------------------------->8--
If that errors out, the same error should be found somewhere in
configure.log.
Regards,
Clemens
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-17 02:44 Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
parent: Jaydip <jaydeep.thakkar92@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Inoue, Hiroshi @ 2018-07-17 02:44 UTC (permalink / raw)
To: Jaydip <jaydeep.thakkar92@gmail.com>; +Cc: pgsql-odbc
Hi Jaydip,
On 2018/07/16 21:11, Jaydip wrote:
> I installed ODBC using below command:
> *zypper install unixODBC.x86_64* where odbcinst library is in /usr/lib64 and
> odbc_config is there in /usr/bin. The odbcinst.ini and odbc.ini files exists
> in /etc/unixODBC folder, however both files are of 0 byte size.
>
> The output of command: ls -l /usr/lib64/*odbc*
>
> lrwxrwxrwx 1 root root 16 Jul 16 16:49 /usr/lib64/libodbc.so.2 ->
> libodbc.so.2.0.0
> -rwxr-xr-x 1 root root 423752 Sep 21 2014 /usr/lib64/libodbc.so.2.0.0
> lrwxrwxrwx 1 root root 18 Jul 16 16:49 /usr/lib64/libodbccr.so.2 ->
> libodbccr.so.2.0.0
> -rwxr-xr-x 1 root root 43216 Sep 21 2014 /usr/lib64/libodbccr.so.2.0.0
> lrwxrwxrwx 1 root root 20 Jul 16 16:49 /usr/lib64/libodbcinst.so.2 ->
Isn't there libodbcinst.so?
regards,
Hiroshi Inoue
> libodbcinst.so.2.0.0
> -rwxr-xr-x 1 root root 76656 Sep 21 2014 /usr/lib64/libodbcinst.so.2.0.0
>
>
> I tried --with-unixodbc without any value but still getting same error. I
> did set LDFLAGS to -ldl as mentioned in one of post but still seeing same
> error.
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-odbc-f2186591.html
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1
@ 2018-07-17 11:22 Jaydip <jaydeep.thakkar92@gmail.com>
parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 0 replies; 6+ messages in thread
From: Jaydip @ 2018-07-17 11:22 UTC (permalink / raw)
To: pgsql-odbc
The issue got resolved after renaming the libodbccr.so.2.0.0 to
libodbcinst.so
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-odbc-f2186591.html
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-07-17 11:22 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 09:04 Getting an error for unixODBC library "odbcinst" not found while executing ./configure --with-unixodbc=/usr --with-libpq=/apps/PostgreSQL/10 in SuSE Linux 12.0 SP1 Jaydip <jaydeep.thakkar92@gmail.com>
2018-07-16 10:53 ` Clemens Ladisch <clemens@ladisch.de>
2018-07-16 12:11 ` Jaydip <jaydeep.thakkar92@gmail.com>
2018-07-16 18:57 ` Clemens Ladisch <clemens@ladisch.de>
2018-07-17 02:44 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2018-07-17 11:22 ` Jaydip <jaydeep.thakkar92@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox