dbTalk Databases Forums  

[BUGS] BUG #2688: Building from source with PL/Python fails ("distutils

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2688: Building from source with PL/Python fails ("distutils in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Anastasios Hatzis
 
Posts: n/a

Default [BUGS] BUG #2688: Building from source with PL/Python fails ("distutils - 10-13-2006 , 03:17 PM






This is a multi-part message in MIME format.
--------------040707090204060400010809
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

My yesterday bug-report #2688 is solved. The solution was that I would
have need to set the path environment to the shared libraries after I
built Python with the --enable-shared option. A Linux newbie error. I
will ask the Python doc team to add a notice on the appropriate place.

Sorry for the inconvience.

Anastasios


Quote:
Subject:
BUG #2688: Building from source with PL/Python fails ("distutils not found")
From:
"Anastasios Hatzis" <ah (AT) hatzis (DOT) de
Date:
Wed, 11 Oct 2006 18:45:35 GMT
To:
pgsql-bugs (AT) postgresql (DOT) org

The following bug has been logged online:

Bug reference: 2688
Logged by: Anastasios Hatzis
Email address: ah (AT) hatzis (DOT) 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!

--------------040707090204060400010809
Content-Type: message/rfc822;
name="(null).eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="(null).eml"

Return-Path: <owner-pgsql-bugs-postgresql.org (AT) postgresql (DOT) org>
Delivered-To: pgsql-bugs-postgresql.org (AT) postgresql (DOT) org
Received: from localhost (mx1.hub.org [200.46.208.251])
by postgresql.org (Postfix) with ESMTP id 64C709FB2A0
for <pgsql-bugs-postgresql.org (AT) postgresql (DOT) org>; Wed, 11 Oct 2006 15:45:38 -0300 (ADT)
Received: from postgresql.org ([200.46.204.71])
by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024)
with ESMTP id 78065-05 for <pgsql-bugs-postgresql.org (AT) postgresql (DOT) org>;
Wed, 11 Oct 2006 15:45:38 -0300 (ADT)
X-Greylist: from auto-whitelisted by SQLgrey-
Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [65.19.161.25])
by postgresql.org (Postfix) with ESMTP id 883EC9FB273
for <pgsql-bugs (AT) postgresql (DOT) org>; Wed, 11 Oct 2006 15:45:37 -0300 (ADT)
Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [65.19.161.25])
by wwwmaster.postgresql.org (8.13.3/8.13.3) with ESMTP id k9BIjZmq014315
for <pgsql-bugs (AT) postgresql (DOT) org>; Wed, 11 Oct 2006 18:45:35 GMT
(envelope-from www (AT) wwwmaster (DOT) postgresql.org)
Received: (from www@localhost)
by wwwmaster.postgresql.org (8.13.3/8.13.3/Submit) id k9BIjZIV014314;
Wed, 11 Oct 2006 18:45:35 GMT
(envelope-from www)
Date: Wed, 11 Oct 2006 18:45:35 GMT
Message-Id: <200610111845.k9BIjZIV014314 (AT) wwwmaster (DOT) postgresql.org>
To: pgsql-bugs (AT) postgresql (DOT) org
Subject: BUG #2688: Building from source with PL/Python fails ("distutils not found")
From: "Anastasios Hatzis" <ah (AT) hatzis (DOT) de>
X-Virus-Scanned: Maia Mailguard 1.0.1


The following bug has been logged online:

Bug reference: 2688
Logged by: Anastasios Hatzis
Email address: ah (AT) hatzis (DOT) 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!


--------------040707090204060400010809
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


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

--------------040707090204060400010809--


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.