Unix Technical Forum

BUG #2688: Building from source with PL/Python fails ("distutils not found")

This is a discussion on BUG #2688: Building from source with PL/Python fails ("distutils not found") within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2688 Logged by: Anastasios Hatzis Email address: ah@hatzis.de PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:17 AM
Anastasios Hatzis
 
Posts: n/a
Default BUG #2688: Building from source with PL/Python fails ("distutils not found")


The following bug has been logged online:

Bug reference: 2688
Logged by: Anastasios Hatzis
Email address: ah@hatzis.de
PostgreSQL version: 8.2beta1
Operating system: openSUSE Linux 10.0 - 64bit
Description: Building from source with PL/Python fails ("distutils
not found")
Details:

OS: A clean, fresh, minimalistic installation of openSUSE Linux 10.0 - 64bit
on AMD Opteron 146 CPU. I added GCC-C++ package and dependent packages.
Details on request if needed.

A1) Building successfully Python 2.5 (final) from source:
# ./configure --enable-shared
# make
# make test
# make install

A2) Since at step B) problem occurred as described in C) I repeated Python
installation with explicit distutils option and tried again B) - but also
with same result as in C):
# make clean
# ./configure --enable-shared --with-distutils
# make
# make test
# make install


B) Building PostgreSQL 8.2-beta1 from source:
# ./configure --with-python --with-openssl --enable-thread-safety

C) Leads to this error:
....
checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
#

D)
But there is distutils in my Python installation:
/usr/local/lib/python2.5/distutils/

In the printed directory usr/local/bin/python the following files of
interest reside:

-rwxr-xr-x 2 root root 11912 Oct 11 20:25 python
lrwxrwxrwx 1 root root 16 Oct 11 20:25 python-config ->
python2.5-config
-rwxr-xr-x 2 root root 11912 Oct 11 20:25 python2.5
-rwxr-xr-x 1 root root 1281 Oct 11 20:25 python2.5-config

Probably I made a mistake during compilation? Or is this a problem of
8.2-beta1 with PL/Python on 64bit?

Many thanks!

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:17 AM
Peter Eisentraut
 
Posts: n/a
Default Re: BUG #2688: Building from source with PL/Python fails ("distutils not found")

Anastasios Hatzis wrote:
> checking for python... /usr/local/bin/python
> checking for Python distutils module... no
> configure: error: distutils module not found


The actual check is

python -c 'import distutils'

Try and see what that does.

> But there is distutils in my Python installation:
> /usr/local/lib/python2.5/distutils/


That proves only that a directory by that name exists, but you haven't
shown any evidence that an importable Python module by that name
exists.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com