Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DBCEE632E1D for ; Mon, 13 Sep 2010 00:20:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 36701-04 for ; Mon, 13 Sep 2010 03:20:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id ED42D632CA5 for ; Mon, 13 Sep 2010 00:20:00 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o8D3Jmp3020639; Sun, 12 Sep 2010 23:19:48 -0400 (EDT) To: James William Pye cc: Josh Berkus , pgsql-testers@postgresql.org, Lou Picciano Subject: Re: Configure/Build 9.0 rc1 - cannot build against python3.1, with two versions of python in the environment In-reply-to: <97F0B24B-FD8D-4277-8E96-9680C66EF1D5@jwp.name> References: <5289151C-F7C2-4012-92F1-346FB9E1578F@comcast.net> <4C8BF66A.5020108@agliodbs.com> <1E79C9FD-5CA1-4194-BE88-417DE705EF6C@jwp.name> <4C8C0CAF.2050600@agliodbs.com> <82B929ED-E40D-4C65-8FFD-2E8613A1A1FF@jwp.name> <4C8D52DB.4050408@agliodbs.com> <97F0B24B-FD8D-4277-8E96-9680C66EF1D5@jwp.name> Comments: In-reply-to James William Pye message dated "Sun, 12 Sep 2010 19:51:24 -0700" Date: Sun, 12 Sep 2010 23:19:48 -0400 Message-ID: <20638.1284347988@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/18 X-Sequence-Number: 194 James William Pye writes: > I think it kept favoring python2 when I wanted python3 as both were in $PATH. AFAICS, it'll pick whichever version is executed when you say "python". Doesn't seem like an unreasonable behavior to me. You may well need to adjust $PATH before running configure. I wouldn't recommend hacking --with-includes or --with-libraries at all, though; we find out what directories to use by asking "python". regards, tom lane