pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedProblems configuring --with-python on RedHat7.2
2+ messages / 2 participants
[nested] [flat]
* Problems configuring --with-python on RedHat7.2
@ 2003-05-12 15:22 Mark Wheaton <m.wheaton@rms.co.uk>
2003-05-14 16:07 ` Re: Problems configuring --with-python on RedHat7.2 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Mark Wheaton @ 2003-05-12 15:22 UTC (permalink / raw)
To: pgsql-admin
Hi all,
RedHat 7.2 with the standard horrors of Python 1.5 and 2.1 installed in
/usr/lib. There's so many deps on these in the standard RH install that
it's easier to leave them in, or so I thought...
A new python in /opt/python2.2.2
when I configure the source with:
./configure --prefix=/opt/postgres7.3.2
--with-includes=/opt/python2.2.2/include
--with-libraries=/opt/python2.2.2/lib --with-python
--with-openssl=/opt/openssl0.9.7 --with-pam
it barfs with the following error:
checking for python... /usr/bin/python
checking Python installation directories... /usr/lib/python1.5
checking how to link an embedded Python application... no
configure: error: Python Makefile not found
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.
Once I took out the --with-python, it worked fine, so I'm gonna go back
and try building the python interface module separately.
Anyone else seen this, or is it just me? Couldn't find anything in the
archives about it, hence the post.
Cheers,
Mark
_____________________________________________________________________
This message has been checked for all known viruses by the
RMS Services Ltd Virus Scanning Service. For further information visit
http://www.rms.co.uk or call UK 01454 281265
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problems configuring --with-python on RedHat7.2
2003-05-12 15:22 Problems configuring --with-python on RedHat7.2 Mark Wheaton <m.wheaton@rms.co.uk>
@ 2003-05-14 16:07 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-05-14 16:07 UTC (permalink / raw)
To: Mark Wheaton <m.wheaton@rms.co.uk>; +Cc: pgsql-admin
Mark Wheaton <m.wheaton@rms.co.uk> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-14 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 15:22 Problems configuring --with-python on RedHat7.2 Mark Wheaton <m.wheaton@rms.co.uk>
2003-05-14 16:07 ` Re: Problems configuring --with-python on RedHat7.2 Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox