Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDF8O-0007O4-07 for pgsql-odbc@arkaria.postgresql.org; Sat, 03 Dec 2016 18:34:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cDF8N-0003nc-Cw for pgsql-odbc@arkaria.postgresql.org; Sat, 03 Dec 2016 18:34:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDF8M-0003nV-SL for pgsql-odbc@postgresql.org; Sat, 03 Dec 2016 18:34:03 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDF8E-0000LO-E1 for pgsql-odbc@postgresql.org; Sat, 03 Dec 2016 18:34:02 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EADC320516; Sat, 3 Dec 2016 13:33:51 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 03 Dec 2016 13:33:51 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=//8cw0lgK8ezDtI FnAmETWE6Tfw=; b=RMIxMoceGl9GDFCbMzFhDmJhFH0UjYeFjzGFPGpuphZqiHG nyCVnvea11yrZE77kNAqsZv0F1dqyxqY1SIk76UvRjCtjXx/k0/lH7+KoDvTDlvy uaViQSZ5D5WxdXnSf7RbIGk4+YWOk/wkTWsOdsH79YVRSALBzGQhmcay5eUM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=//8cw0lgK8ezDtIFnAmETWE6Tfw=; b=Gi87NzybJoFE/U8cvXTP tdrkaGLv/Hq/fFVcmIvl3Ce7WWKd0cEnE4E16NAGf8kEvak9Vpi3QFM0Ht9IAr3F D89fLBKX6H+cMdeNPlo32Y7VFsDyqkd4YsUpB4amRpDG6e+5PKRuzrQgLKjfVQze gdZ+ElBfgbxT+M9SrzdsgG8= X-ME-Sender: X-Sasl-enc: aL4oDzDgDqEAYDIUJyqFeWlQ53HBuTE104zvbeFBQqMc 1480790031 Received: from [192.168.1.2] (174-21-234-69.tukw.qwest.net [174.21.234.69]) by mail.messagingengine.com (Postfix) with ESMTPA id 366057E456; Sat, 3 Dec 2016 13:33:51 -0500 (EST) Subject: Re: Distribution package for OSX To: Igor Korot References: <31418.1480650516@sss.pgh.pa.us> <3467d31c-30d6-c5ae-26bc-56aa992d95c6@aklaver.com> Cc: Michael Paquier , Tom Lane , PostgreSQL ODBC list From: Adrian Klaver Message-ID: <6c5e7dd7-397b-cc9a-3797-01ca2447aabb@aklaver.com> Date: Sat, 3 Dec 2016 10:33:50 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 12/03/2016 09:31 AM, Igor Korot wrote: > Adrian, > > On Sat, Dec 3, 2016 at 12:08 PM, Adrian Klaver > wrote: >> On 12/03/2016 07:57 AM, Igor Korot wrote: >>> >>> Adrian, >>> >>> On Sat, Dec 3, 2016 at 9:32 AM, Igor Korot wrote: >>>> >>>> Adrian, >>>> >>>> On Sat, Dec 3, 2016 at 9:30 AM, Adrian Klaver >>>> wrote: >>>>> >>>>> On 12/03/2016 06:06 AM, Igor Korot wrote: >>>>>> >>>>>> >>>>>> Michael, >>>>>> >>>>>> On Sat, Dec 3, 2016 at 4:03 AM, Michael Paquier >>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> On Sat, Dec 3, 2016 at 12:35 PM, Igor Korot >>>>>>> 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