From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Igor Korot <ikorot01@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL ODBC list <pgsql-odbc@postgresql.org>
Subject: Re: Distribution package for OSX
Date: Sat, 3 Dec 2016 10:33:50 -0800
Message-ID: <6c5e7dd7-397b-cc9a-3797-01ca2447aabb@aklaver.com> (raw)
In-Reply-To: <CA+FnnTw3t8PXyy7cxGzqJXkm=kb=6qkuYA6ZDQc-tsFp8DGcoA@mail.gmail.com>
References: <CA+FnnTxMGTzHD1Cmy4UxLVjCZnROgU6T+7+KGqLM_Dp9gzVC0A@mail.gmail.com>
<CAB7nPqQoFxTN9CAWUOOiD3ooBTaF5h5REnwjwpQv=3a--mdfpg@mail.gmail.com>
<CA+FnnTzE_qj2KYSnK9gt5Fo278bR8dFHeTYKEywc7phaXA2M2w@mail.gmail.com>
<31418.1480650516@sss.pgh.pa.us>
<CA+FnnTx-j1AgoA87gn3ac=di2sCPS78Ja3gvMbrsiaDXraSHeA@mail.gmail.com>
<CAB7nPqTDLDJP26VLm6RwjWPDFQeTshmis+cX_hUoencFpDa=Vg@mail.gmail.com>
<CA+FnnTyfbt49O_7D5m+kXbiO1sJG8Eu1mUMdjCYYexbTczwm4Q@mail.gmail.com>
<CAB7nPqT0TH6KkjgB20A76Kb=XyyRd3geaEfQBj_WG9yhjL-cxw@mail.gmail.com>
<CA+FnnTyj3LtgR2_cJvZ0qK8VUf9DbPU_bDarS3MFF0tuQHMiXA@mail.gmail.com>
<fcb2ed66-2b93-8ffc-4f17-e0bfd711054f@aklaver.com>
<CA+FnnTzVH+ENi3igySJhFyHhRwdveDmnOQFrGOdWpTgjMD58fQ@mail.gmail.com>
<CA+FnnTz69rb1ZkuA8_dP3hnvHnQ8tuxRtN5e1ZMpOktt+FuEsw@mail.gmail.com>
<3467d31c-30d6-c5ae-26bc-56aa992d95c6@aklaver.com>
<CA+FnnTw3t8PXyy7cxGzqJXkm=kb=6qkuYA6ZDQc-tsFp8DGcoA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 12/03/2016 09:31 AM, Igor Korot wrote:
> Adrian,
>
> On Sat, Dec 3, 2016 at 12:08 PM, Adrian Klaver
> <adrian.klaver@aklaver.com> wrote:
>> On 12/03/2016 07:57 AM, Igor Korot wrote:
>>>
>>> Adrian,
>>>
>>> On Sat, Dec 3, 2016 at 9:32 AM, Igor Korot <ikorot01@gmail.com> wrote:
>>>>
>>>> Adrian,
>>>>
>>>> On Sat, Dec 3, 2016 at 9:30 AM, Adrian Klaver <adrian.klaver@aklaver.com>
>>>> wrote:
>>>>>
>>>>> On 12/03/2016 06:06 AM, Igor Korot wrote:
>>>>>>
>>>>>>
>>>>>> Michael,
>>>>>>
>>>>>> On Sat, Dec 3, 2016 at 4:03 AM, Michael Paquier
>>>>>> <michael.paquier@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Dec 3, 2016 at 12:35 PM, Igor Korot <ikorot01@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> So which version of the driver I can use?
>>>>>>>> The one that will understand the version I have and successfully can
>>>>>>>> be configured
>>>>>>>> and compiled.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> PQsetSingleRowMode is only available since Postgres 9.2, so you need
>>>>>>> to install a newer version via homebrew or macports.
>>>>>>
>>>>>>
>>>>>>
>>>>>> I don't really care about latest and greatest.
>>>>>> All I need is to test whether I can connect to the PostgreSQL DB thru
>>>>>> the
>>>>>> ODBC
>>>>>> with iODBC on OSX and execute some queries.
>>>>>
>>>>>
>>>>>
>>>>> Got to your other post that mentioned you are using Postgres 9.1.9.
>>>>> So that pushes the psqlodbc version back to psqlodbc-09.00.0310 or
>>>>> older.
>>>
>>>
>>> I successfully compiled and installed the driver in /usr/local/lib.
>>> However, when I tried to run the iODBC Administrator and tried to add
>>> the new DSN
>>> the driver was not available.
>>> Trying to run "ldconfig" I see that this binary is not available.
>>>
>>> I configured the driver with
>>>
>>> [quote]
>>> ../configure --with-odbc=/Library/Framework/iODBC.Framework/iODBC
>>> [/quote]
>>>
>>> Am I missing a configure switch?
>>
>>
>> https://odbc.postgresql.org/docs/unix-compilation.html
>>
>> Should it not be:
>>
>> --with-iodbc=DIR path or direct iodbc-config file
>
> Yes, I gave it a DIR parameter - a directory where iODBC manager is installed.
Yes, but the switch you showed using was:
--with-odbc
not
--with-iodbc
So which one did you use?
You might also want to look in the conf.log to see if there are any
errors reported. Because when I tried with --with-odbc I got at the end
of the ./configure:
configure: WARNING: unrecognized options: --with-odbc
Though make and make install still ran:
aklaver@panda:~/test/psqlodbc-09.05.0300> sudo make install
make[1]: Entering directory '/home/aklaver/test/psqlodbc-09.05.0300'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c psqlodbcw.la
'/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/psqlodbcw.so
/usr/local/lib/psqlodbcw.so
libtool: install: /usr/bin/install -c .libs/psqlodbcw.lai
/usr/local/lib/psqlodbcw.la
libtool: finish:
PATH="/usr/local/pgsql/bin:/home/aklaver/.pyenv/shims:/home/aklaver/.pyenv/bin:/usr/local/pgsql/bin:/home/aklaver/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/local/pgsql/include:/usr/local/pgsql/include:/sbin"
ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for 'install-data-am'.
make[1]: Leaving directory '/home/aklaver/test/psqlodbc-09.05.0300'
>
> Thank you.
>
>>
>>
>>
>>>
>>> Thank you.
>>>
>>>>
>>>> OK, got it.
>>>> Thx.
>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>>> --
>>>>>>> Michael
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Adrian Klaver
>>>>> adrian.klaver@aklaver.com
>>>
>>>
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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-odbc@postgresql.org
Cc: adrian.klaver@aklaver.com, ikorot01@gmail.com, michael.paquier@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Distribution package for OSX
In-Reply-To: <6c5e7dd7-397b-cc9a-3797-01ca2447aabb@aklaver.com>
References: <CA+FnnTxMGTzHD1Cmy4UxLVjCZnROgU6T+7+KGqLM_Dp9gzVC0A@mail.gmail.com> <CAB7nPqQoFxTN9CAWUOOiD3ooBTaF5h5REnwjwpQv=3a--mdfpg@mail.gmail.com> <CA+FnnTzE_qj2KYSnK9gt5Fo278bR8dFHeTYKEywc7phaXA2M2w@mail.gmail.com> <31418.1480650516@sss.pgh.pa.us> <CA+FnnTx-j1AgoA87gn3ac=di2sCPS78Ja3gvMbrsiaDXraSHeA@mail.gmail.com> <CAB7nPqTDLDJP26VLm6RwjWPDFQeTshmis+cX_hUoencFpDa=Vg@mail.gmail.com> <CA+FnnTyfbt49O_7D5m+kXbiO1sJG8Eu1mUMdjCYYexbTczwm4Q@mail.gmail.com> <CAB7nPqT0TH6KkjgB20A76Kb=XyyRd3geaEfQBj_WG9yhjL-cxw@mail.gmail.com> <CA+FnnTyj3LtgR2_cJvZ0qK8VUf9DbPU_bDarS3MFF0tuQHMiXA@mail.gmail.com> <fcb2ed66-2b93-8ffc-4f17-e0bfd711054f@aklaver.com> <CA+FnnTzVH+ENi3igySJhFyHhRwdveDmnOQFrGOdWpTgjMD58fQ@mail.gmail.com> <CA+FnnTz69rb1ZkuA8_dP3hnvHnQ8tuxRtN5e1ZMpOktt+FuEsw@mail.gmail.com> <3467d31c-30d6-c5ae-26bc-56aa992d95c6@aklaver.com> <CA+FnnTw3t8PXyy7cxGzqJXkm=kb=6qkuYA6ZDQc-tsFp8DGcoA@mail.gmail.com> <6c5e7dd7-397b-cc9a-3797-01ca2447aabb@aklaver.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