This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: wrong location for math lib with --prefix
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, terry.reedy, thorfdbg
Priority: normal Keywords:

Created on 2005-05-20 15:21 by thorfdbg, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg60741 - (view) Author: Thomas Richter (thorfdbg) Date: 2005-05-20 15:21
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 install

This will place libraries etc. correctly in

Afterwards, setup pythonpath accordingly


If you start then python, try

>> import math

The result will be that pyhon will not find the math

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


instead of


Setting a softlink in the lib directory works around this
and brings python back to working.
msg60742 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2005-05-26 15:59
Logged In: YES 

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.
msg61347 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-20 19:32
No response in more than 2 years, closing.
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42000
2008-01-20 19:32:20christian.heimessetstatus: open -> closed
resolution: out of date
messages: + msg61347
nosy: + christian.heimes
2005-05-20 15:21:34thorfdbgcreate