X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6A098476340 for ; Wed, 14 May 2003 12:07:31 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 79640-09 for ; Wed, 14 May 2003 12:07:29 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9E152475E91 for ; Wed, 14 May 2003 12:07:29 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4EG7WU6024779; Wed, 14 May 2003 12:07:32 -0400 (EDT) To: Mark Wheaton Cc: pgsql-admin@postgresql.org Subject: Re: Problems configuring --with-python on RedHat7.2 In-reply-to: <3EBFBC2C.30509@rms.co.uk> References: <3EBFBC2C.30509@rms.co.uk> Comments: In-reply-to Mark Wheaton message dated "Mon, 12 May 2003 16:22:20 +0100" Date: Wed, 14 May 2003 12:07:32 -0400 Message-ID: <24778.1052928452@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/175 X-Sequence-Number: 8737 Mark Wheaton writes: > So, it's looking in the wrong place for its Python, and you can't give > an argument to --with-python to tell it which python to look at. No. What you need is to control which python executable it finds. Either change your $PATH so that the 2.2.2 python appears first, or set PYTHON in configure's environment. I'm not sure whether the --with-includes and --with-libraries hacks are necessary or not, once you do that --- it may learn everything it needs to know directly from python. regards, tom lane