Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNG9u-0008Ol-F9 for pgsql-admin@arkaria.postgresql.org; Thu, 24 Feb 2022 15:35:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNG9t-0006HM-8U for pgsql-admin@arkaria.postgresql.org; Thu, 24 Feb 2022 15:35:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNG9s-0006HD-Uk for pgsql-admin@lists.postgresql.org; Thu, 24 Feb 2022 15:35:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNG9q-00014C-Fi for pgsql-admin@lists.postgresql.org; Thu, 24 Feb 2022 15:35:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21OFZqeV1348576; Thu, 24 Feb 2022 10:35:52 -0500 From: Tom Lane To: Daniel RC cc: Marcia Rocha , pgsql-admin@lists.postgresql.org Subject: Re: postgresql14-contrib does not install with libpython 3.7 In-reply-to: References: Comments: In-reply-to Daniel RC message dated "Thu, 24 Feb 2022 10:04:03 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1348574.1645716952.1@sss.pgh.pa.us> Date: Thu, 24 Feb 2022 10:35:52 -0500 Message-ID: <1348575.1645716952@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel RC writes: > Hello Marcia. > Have you tried compiling PostgreSQL? Yeah ... I don't have a RHEL7 installation handy, but the official Python installation in my RHEL8 workstation is 3.6.8, so it's impossible to believe that RHEL7 shipped with Python 3.7. What you have there is a nonstandard software environment, and if you want to stick with it that's going to mean doing some of your own building. However, rather than compiling directly from source as Daniel suggests, I'd suggest grabbing the SRPM for the package version you want and building RPMs from that locally. This is, generally, even easier than building raw source, and it will make for a much easier transition from your existing RPM-based installation of PG. regards, tom lane