Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 26A7F632BBB for ; Tue, 10 Aug 2010 04:31:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 93701-03 for ; Tue, 10 Aug 2010 07:31:05 +0000 (UTC) X-Greylist: delayed 00:05:07.946798 by SQLgrey-1.7.6 Received: from mail.visicom-ba.in.visicom.sk (a4.visicom.ba.cust.gts.sk [195.168.124.108]) by mail.postgresql.org (Postfix) with ESMTP id 6C9686325EE for ; Tue, 10 Aug 2010 04:31:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.visicom-ba.in.visicom.sk (Postfix) with ESMTP id D30D322BC024 for ; Tue, 10 Aug 2010 09:25:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.visicom-ba.in.visicom.sk Received: from mail.visicom-ba.in.visicom.sk ([127.0.0.1]) by localhost (mail.visicom-ba.in.visicom.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kh6gJhrFcQZX for ; Tue, 10 Aug 2010 09:25:53 +0200 (CEST) Received: from [127.0.0.1] (nat-88-212-40-69.antik.sk [88.212.40.69]) by mail.visicom-ba.in.visicom.sk (Postfix) with ESMTPSA id AD70022BC023 for ; Tue, 10 Aug 2010 09:25:53 +0200 (CEST) Message-ID: <4C60FF02.2050704@visicom.sk> Date: Tue, 10 Aug 2010 09:25:54 +0200 From: Michal Seliga User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: i cannot use odbc with postgresql in linux X-Enigmail-Version: 1.0.1 Content-Type: multipart/alternative; boundary="------------050605020603000703050307" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201008/8 X-Sequence-Number: 10385 This is a multi-part message in MIME format. --------------050605020603000703050307 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit i am using ubuntu 10.04, with self compiled unixodbc 2.2.11 from ubuntu repository (its build such way that SQL WCHARS are 2 bytes long). unixodbc is then installed to /opt/unixodbc then i install postgresql from repository and pgsqlodbc-08.03.0200 from repository and build it with ./configure --with-unixodbc=/opt/unixodbc ; make; cp .libs/psqlodbcw.so /opt/unixodbc/lib then i create .odbc.ini entry to test database which works using psql and I do export LD_LIBRARY_PATH=/opt/unixodbc/lib /opt/unixodbc/bin/isql -v psqltest result is: [IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed [ISQL]ERROR: Could not SQLConnect i found many messages here about this problem, but no solution yet. any idea what i can do? i tried to use newev official version (08.04.200), cvs version from http://pgfoundry.org/scm/?group_id=1000125, but result was always the same i did the same things with mysql and their odbc driver and it works such way. i can use it both with isql and other programs. so i guess that how i build driver is not problem...or am i doing something really wrong? -- i tried to post this message using google groups but it seems it didn't got through. if it would be posted twice i am sorry... --------------050605020603000703050307 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
i am using ubuntu 10.04, with self compiled unixodbc 2.2.11 from ubuntu repository (its build such way that SQL WCHARS are 2 bytes long). unixodbc is then installed to /opt/unixodbc

then i install postgresql from repository and pgsqlodbc-08.03.0200 from repository and build it with ./configure --with-unixodbc=/opt/unixodbc ; make; cp .libs/psqlodbcw.so /opt/unixodbc/lib

then i create .odbc.ini entry to test database which works using psql and I do
export LD_LIBRARY_PATH=/opt/unixodbc/lib
/opt/unixodbc/bin/isql -v psqltest

result is:
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on
SQL_HANDLE_DBC failed
[ISQL]ERROR: Could not SQLConnect

i found many messages here about this problem, but no solution yet. any idea what i can do?
i tried to use newev official version (08.04.200), cvs version from http://pgfoundry.org/scm/?group_id=1000125, but result was always the same

i did the same things with mysql and their odbc driver and it works such way. i can use it both with isql and other programs. so i guess that how i build driver is not problem...or am i doing something
really wrong?

--

i tried to post this message using google groups but it seems it didn't got through. if it would be posted twice i am sorry...
--------------050605020603000703050307--