Bugs item #1205736, was opened at 2005-05-20 11:21
Message generated for change (Comment added) made by tjreedy
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1205736&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Richter (thorfdbg)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong location for math lib with --prefix

Initial Comment:
If python2.3 or 2.4 get configured with --prefix, the
math libraries (and other binary libraries) are check
for in the wrong location. Specifically, the prefix
will be will be used twice, giving the wrong path for
the binary object.

How to reproduce:

Configure python with 

./configure --prefix=/foo ;or whatever,
make
make install

This will place libraries etc. correctly in
/foo/lib/python2.4.

Afterwards, setup pythonpath accordingly

export
PYTHONPATH="/foo/lib/python2.4:/foo/lib/python2.4/site-packages"

If you start then python, try

>> import math

The result will be that pyhon will not find the math
module.

Debugging with strace reveals that python checks for binary
libraries now in

/foo/lib/python2.4/lib/python2.4

instead of

/foo/lib/python2.4

Setting a softlink in the lib directory works around this
and brings python back to working.


----------------------------------------------------------------------

>Comment By: Terry J. Reedy (tjreedy)
Date: 2005-05-26 11:59

Message:
Logged In: YES 
user_id=593130

What *specific* system or systems did this occur with?  If this 
were general to all *nix type systems, I would expect it to have 
already been caught and fixed.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1205736&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to