Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDBFs-0004ly-Po for pgsql-odbc@arkaria.postgresql.org; Sat, 03 Dec 2016 14:25:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cDBFs-0005Qe-9K for pgsql-odbc@arkaria.postgresql.org; Sat, 03 Dec 2016 14:25:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDBFV-0004z2-Kf for pgsql-odbc@postgresql.org; Sat, 03 Dec 2016 14:25:09 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDBFS-0005XW-Hk for pgsql-odbc@postgresql.org; Sat, 03 Dec 2016 14:25:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 05C852068A; Sat, 3 Dec 2016 09:25:06 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 03 Dec 2016 09:25:06 -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=wTRhqstCzHoQXW3 4FOy9r8T/g/4=; b=l9AC04Ts5FzIiWBypHyk3LHZa9LWQ8EDlV54N1ayUiu3Ma2 egh4N2FOtGO7nELn0r7aFfTKFx7GZQuh4YIrcVbgxyhWnRQkpHYuuUlOFyBC9DFk 9Qg8O8YWEDAw3qcE3ATYNAPVoYHlmD3SRMdVMkbuNtt6Ce36Za+f8ooKHS/U= 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=wTRhqstCzHoQXW34FOy9r8T/g/4=; b=ija3KKxYRcGiNT7oyZ/Q LFOueYtBFj4pnJE+kwqEgfRLNIrA46MjyKtSNwUXKnUuq2NPgdJUniEgloXI3P1i YGURZXTe6JzgkrnbNtxAEpv6K21epGdjbQQnOTgBmXAWyO91qOK/I44rLhNtSdsZ g1iEopdiivAqG7bWW3jyFUI= X-ME-Sender: X-Sasl-enc: x3nNSYBvezFhgkrp9Dnme7vvH07fiqL8KXsiO9aHx4FK 1480775105 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 600D97E32C; Sat, 3 Dec 2016 09:25:05 -0500 (EST) Subject: Re: Distribution package for OSX To: Igor Korot References: <31418.1480650516@sss.pgh.pa.us> <4f20f94e-cf41-e28b-b5ba-77a07753cb69@aklaver.com> Cc: Tom Lane , Michael Paquier , PostgreSQL ODBC list From: Adrian Klaver Message-ID: <2be706bb-970d-bdd5-49d3-928662253eb4@aklaver.com> Date: Sat, 3 Dec 2016 06:25:04 -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/02/2016 07:38 PM, Igor Korot wrote: > Hi, Adrian, > > On Fri, Dec 2, 2016 at 1:29 AM, Adrian Klaver wrote: >> On 12/01/2016 08:47 PM, Igor Korot wrote: >>> >>> Hi, Tom, >>> >>> On Thu, Dec 1, 2016 at 10:48 PM, Tom Lane wrote: >>>> >>>> Igor Korot writes: >>>>> >>>>> This is what I get trying to compile latest source: >>>> >>>> >>>>>> checking for PQsetSingleRowMode in -lpq... no >>>>>> configure: error: libpq library version >= 9.2 is required >>>> >>>> >>>> Apple does ship a copy of libpq in /usr/lib, but it's generally a bit >>>> back-rev, and you're working in a macOS release that's itself several >>>> years out of date. You'll need to install a newer libpq to satisfy this >>>> ODBC version, evidently. >>> >>> >>> Is there a way to see what version of PostgreSQL is installed on >>> the system? >>> Because then it would be easy to find out what version of ODBC >>> driver I should have to connect. >>> Or maybe I already have the driver, since I have iODBC installed? >> >> >> A question I should have asked earlier, is it a requirement that ODBC be >> used for the connection? >> >> In other words is this a third party app needing ODBC or something you wrote >> that you want to connect via ODBC? > > This is a software I'm writing and for testing purposes I need to use it. > It is cross-platform cross-database one. > > One of the use-cases is to connect to the PostgreSQL thru the ODBC. > > BTW, is there another way (a "native" way to talk to PostgreSQL server? Using libpq: https://www.postgresql.org/docs/9.5/static/libpq.html There is also JDBC: https://jdbc.postgresql.org/ Then there are all the other language bindings eg Python, PERL, etc. It really depends on what you are calling native. > > Thank you. > >> >> >>> >>> Just checked - driver is not there. >>> >>> Thank you. >>> >>>> >>>> There isn't any separate distribution of libpq alone; you need to >>>> build and install all of Postgres into, say, /usr/local. That's >>>> not hard, but if you don't enjoy rolling it all yourself, you might >>>> want to consider installing from MacPorts or Homebrew. >>>> >>>> regards, tom lane >>> >>> >>> >> >> >> -- >> 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