From: Dev Kumkar <devdas.kumkar@gmail.com>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: [ODBC] ODBC constructs
Date: Tue, 21 May 2013 19:27:28 -0700
Message-ID: <CALSLE1PZou7Dd21goHLOEEDaN6QPyu5UeXG-2LOAA5nZruA4cA@mail.gmail.com> (raw)
In-Reply-To: <519C1F2F.8040708@hogranch.com>
References: <CALSLE1MARsmPHrRi2jtYDrZz80JQnx8kMjaAh5UGHMNUcoMh3g@mail.gmail.com>
<CALSLE1N=E5XmNHn6AS=7OXMGmC379+vvuBH1Vv5Sin4fPJog+A@mail.gmail.com>
<CALSLE1NfessvrQvwGCy_LBaz4pkaeLAJOwFqmYPgH-cF5wOzRw@mail.gmail.com>
<AD6CD285-763A-46AB-9825-31BF208AAFA4@gmail.com>
<CALSLE1Nd6qCcywLqm7fCWF3FHP_iGDxCzHspEYf0f88QiQ+d_A@mail.gmail.com>
<519B14E7.3010806@vmware.com>
<CALSLE1MTNLFS_15Xw7L52fWs17VGqyLRTYewv2V4ssmw7AJqNw@mail.gmail.com>
<519BC7F5.1010703@hogranch.com>
<CALSLE1PX5FrZfDZtCRPQ4=mpq2hDu5sFUDDi7ft9t5W36K0=DA@mail.gmail.com>
<87F42982BF2B434F831FCEF4C45FC33E64E8083A@EXCHANGE.corporate.connx.com>
<CALSLE1NF=bd=gJVg_19FjX6cqPpcdoboBnyCf3LUQDA_=XhkLQ@mail.gmail.com>
<519BF280.8060008@hogranch.com>
<CALSLE1MnecGpz4-69pTXFx8LT6sj4Tok-k3n6f0sY85JZPGR9w@mail.gmail.com>
<519C1F2F.8040708@hogranch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
>
> Currently looking for RHEL 5. Thanks! yes looked into my machine and "yum
> list postgres*" listed "postgresql91-odbc.x86_64"
> But when trying to install, then found the base ODBC library itself are
> missing and those needs to be configured first on test machine.
>
> Error: Missing Dependency: libodbc.so.1()(64bit) is needed by package
> postgresql91-odbc-09.00.0310-1PGDG.rhel5.x86_64 (pgdg91)
> Error: Missing Dependency: libodbcinst.so.1()(64bit) is needed by package
> postgresql91-odbc-09.00.0310-1PGDG.rhel5.x86_64 (pgdg91)
>
>
> that should have come from the base repository...
>
> # yum provides libodbc.so.1
> Loaded plugins: fastestmirror, priorities
> Loading mirror speeds from cached hostfile
> * base: centos.mirrors.hoobly.com
> * extras: centos.mirror.freedomvoice.com
> * updates: centos-distro.cavecreek.net
> unixODBC-libs-2.2.11-10.el5.i386 : The shared libraries required by
> programs that use unixODBC
> Repo : base
> Matched from:
> Other : libodbc.so.1
>
> unixODBC-libs-2.2.11-10.el5.i386 : The shared libraries required by
> programs that use unixODBC
> Repo : installed
> Matched from:
> Other : Provides-match: libodbc.so.1
>
> (on a 32bit EL5 system)
>
Ya it should have been with base registry. Where to get
unixODBC-libs-2.2.11-10.el5.i386?
Since ODBC driver was missing, downloaded unixODBC-2.3.0.tar.gz and
configured/make this. Now "which odbc_config" works
# which odbc_config
/usr/local/bin/odbc_config
# odbc_config --libs
-L/usr/local/lib -lodbc
But still 'yum install postgresql91-odbc' is giving errors.
Error: Missing Dependency: libodbc.so.1()(64bit) is needed by package
postgresql91-odbc-09.00.0310-1PGDG.rhel5.x86_64 (pgdg91)
Error: Missing Dependency: libodbcinst.so.1()(64bit) is needed by package
postgresql91-odbc-09.00.0310-1PGDG.rhel5.x86_64 (pgdg91)
I tried the other way then, building psqlodbc itself:
Downloaded psqlodbc driver from
http://psqlodbc.projects.postgresql.org/and tried configuring it. It
also gave error saying 'libpq' not found. Then
ran "yum -y install postgresql91-devel" and then configured with "$
./configure --with-libpq=/usr/pgsql-9.1/bin/pg_config" this worked without
'libpq error'. But still no real success as there were many errors thrown
for 'SQLExtendedFetch' and 'SQLROWSETSIZE'.
Suggestions?
Regards...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: devdas.kumkar@gmail.com, pierce@hogranch.com, pgsql-general@postgresql.org, pgsql-odbc@postgresql.org
Subject: Re: [ODBC] ODBC constructs
In-Reply-To: <CALSLE1PZou7Dd21goHLOEEDaN6QPyu5UeXG-2LOAA5nZruA4cA@mail.gmail.com>
References: <CALSLE1MARsmPHrRi2jtYDrZz80JQnx8kMjaAh5UGHMNUcoMh3g@mail.gmail.com> <CALSLE1N=E5XmNHn6AS=7OXMGmC379+vvuBH1Vv5Sin4fPJog+A@mail.gmail.com> <CALSLE1NfessvrQvwGCy_LBaz4pkaeLAJOwFqmYPgH-cF5wOzRw@mail.gmail.com> <AD6CD285-763A-46AB-9825-31BF208AAFA4@gmail.com> <CALSLE1Nd6qCcywLqm7fCWF3FHP_iGDxCzHspEYf0f88QiQ+d_A@mail.gmail.com> <519B14E7.3010806@vmware.com> <CALSLE1MTNLFS_15Xw7L52fWs17VGqyLRTYewv2V4ssmw7AJqNw@mail.gmail.com> <519BC7F5.1010703@hogranch.com> <CALSLE1PX5FrZfDZtCRPQ4=mpq2hDu5sFUDDi7ft9t5W36K0=DA@mail.gmail.com> <87F42982BF2B434F831FCEF4C45FC33E64E8083A@EXCHANGE.corporate.connx.com> <CALSLE1NF=bd=gJVg_19FjX6cqPpcdoboBnyCf3LUQDA_=XhkLQ@mail.gmail.com> <519BF280.8060008@hogranch.com> <CALSLE1MnecGpz4-69pTXFx8LT6sj4Tok-k3n6f0sY85JZPGR9w@mail.gmail.com> <519C1F2F.8040708@hogranch.com> <CALSLE1PZou7Dd21goHLOEEDaN6QPyu5UeXG-2LOAA5nZruA4cA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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