Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEail-0001HR-C1 for pgsql-general@arkaria.postgresql.org; Mon, 22 Oct 2018 13:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gEaii-0001JG-JR for pgsql-general@arkaria.postgresql.org; Mon, 22 Oct 2018 13:58:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEaiZ-0000UT-7i for pgsql-general@lists.postgresql.org; Mon, 22 Oct 2018 13:58:04 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEaiU-0001Y6-2k for pgsql-general@postgresql.org; Mon, 22 Oct 2018 13:58:01 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E4F7F22053; Mon, 22 Oct 2018 09:57:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 22 Oct 2018 09:57:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=C 0AONOimUM6qKoIEqZcMg5IfuHShR04A43lbDyVK6TM=; b=b3nWRjZzO1+Fm8K57 FqXz8HBs+8LndZiCAET0YNGQba/jbrg3yhzOqaeGs0y/7saioh9ZkoOGf+h84tV1 vsKSvfchY6XgUgrOUDH0xQNhwGz74QKNckLhz36cNm9id1XJlhdKdIEeVwume16B 30aq3y2l5p6qGetsHoA3ymYUFalo2DfTLNV3cLz+qggcTaLrzsmJi1aTkBd2mio+ /ezJF8qlsNs0sCaKB7dG8GuEnM9kHfudr+aafeoCo6Shu7x1+zcZ+plAznLNz8zo cTq/VHneKbfa9LSQf1tYTT9FL/k1L+cSCSyCLko+CjsKkGkF7ql0ROUADRUqRMai /iPNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=C0AONOimUM6qKoIEqZcMg5IfuHShR04A43lbDyVK6 TM=; b=aF4eRv/PGOj5kIRA/9IyrIpdW19TWfuEMhwws9AD7Qzi8cKVfiidqcsEU 9EtHc2nWSBn71y63l++wW09wT/1dE9WKGjb8pzNR94A9kjcvRvt2C28h6LQDhde3 qF3SdESovGVCIO672Nb6YGA/cqUgVK9AfZUbNMFojyiKwDsxpHsA9n53YoBPaaJ1 l9EWaffyOGIpzEQGxbKL8SrjlYc0aV1AC6iKsNguyM/Une08RakBwPWDmunmJftd GsYPw/YFJCP9WYjZ4IcPQo/lqlHpL3TOLqD5MqWBnIXaHrIOZdjV9Dgeg80s27pC VTHE0xmAqNW9c+YhxkN9i6QR2L4fg== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id DA0FD102DD; Mon, 22 Oct 2018 09:57:55 -0400 (EDT) Subject: Re: How to declare PG version for compiling extensions. To: GPT , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <5a1810c6-002d-874b-736d-458248b96b00@aklaver.com> Date: Mon, 22 Oct 2018 06:57:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/22/18 6:53 AM, GPT wrote: > Unfortunately, I had not installed the following package: > > "postgresql-server-dev-11" > > By the way, shouldn't a warning message appear while trying to run: > > `PATH=/usr/lib/postgresql/11/bin:$PATH make USE_PGXS=1` > > warning the user that some files are missing. Except there weren't. In $PATH there where the PG 10 files that could be used. Now they where not the ones you wanted, but make did not 'know' that. > > Tia > > > On 10/22/18, GPT wrote: >> Hi, >> >> Both PG versions 10.5 and 11 are installed. >> >> I have been trying to compile extensions for PG11 by using: >> >> PATH=/.../11/bin:PATH make USE_... >> >> but unfortunately PG10 is always being used (the `make` output always >> shows PG10 and refers to `pg_config`). >> >> 1) Does it have to do with pg_config? >> 2) How can I declare which PG version to be used in real time? >> 3) How can I change which PG version to be used permanently? >> >> Tia >> > > -- Adrian Klaver adrian.klaver@aklaver.com