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.

classification
Title: lib-dynload missing in python install
Type: behavior Stage: resolved
Components: Build, Installation Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Paul.Weiss, eric.araujo, ned.deily, r.david.murray
Priority: normal Keywords:

Created on 2011-07-18 13:47 by Paul.Weiss, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (11)
msg140578 - (view) Author: Paul Weiss (Paul.Weiss) Date: 2011-07-18 13:47
I am trying to install python 2.7 on my Redhat machine. It installs most of the files, but it doesn't install the lib-dynload directory. I have set every path, done every install and clean I could think of but I can't get it to work. I have tried 2.7, 2.7.1 and 2.7.2 and none of them install. What could cause this?
msg140579 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-07-18 13:57
I’m assuming you’re installing a Python from python.org, not the one from Red Hat.  Can you give us the configure and make commands you ran?
msg140581 - (view) Author: Paul Weiss (Paul.Weiss) Date: 2011-07-18 14:05
Correct, I am using the source from 

http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz

make clean 
./configure --prefix=/opt/Python-2.7
make 
sudo make install 

I get this:

/usr/bin/install -c -m 644 ./LICENSE /opt/Python-2.7/lib/python2.7/LICENSE.txt
PYTHONPATH=/opt/Python-2.7/lib/python2.7   \
        ./python -Wi -tt /opt/Python-2.7/lib/python2.7/compileall.py \
        -d /opt/Python-2.7/lib/python2.7 -f \
        -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
        /opt/Python-2.7/lib/python2.7
Traceback (most recent call last):
  File "/opt/Python-2.7/lib/python2.7/compileall.py", line 17, in <module>
    import struct
  File "/opt/Python-2.7/lib/python2.7/struct.py", line 1, in <module>
    from _struct import *
ImportError: No module named _struct
make: *** [libinstall] Error 1
msg140583 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-07-18 14:08
Also, are you using a linux3 kernel?
msg140584 - (view) Author: Paul Weiss (Paul.Weiss) Date: 2011-07-18 14:17
No, Redhat's 2.6.9. Could that be the issue?
msg140594 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-07-18 15:09
No.  We know we have some issues with platform stuff on linux3 kernels, though, which why I asked.
msg140613 - (view) Author: Paul Weiss (Paul.Weiss) Date: 2011-07-18 20:45
So I have solved my own issue, but the solution raises another question. Let me explain...

On a whim I copied the build/lib.linux-i686-2.7 directory into the /opt/Python-2.7/lib/python2.7 directory as lib-dynload. This worked and python installed correctly. In a quick test it looks like everything is fine. 

But now my question is, why didn't that directory get copied during the build?
msg140617 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-07-18 21:04
Well, at this point we have no idea.  It works fine for us.  This part is all controlled by the Makefile, maybe you can do some debugging on it.
msg140619 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2011-07-18 21:19
Works for me on another unix-y system.  I don't see any reason in configure.in or Makefile.pre.in why this shouldn't work assuming "make" is working as expected.  What version of "make" are you using?
msg140620 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2011-07-18 21:23
Or possibly "install".
msg140622 - (view) Author: Paul Weiss (Paul.Weiss) Date: 2011-07-18 21:32
As it turns out I am using an older version of make on the machine that I was having trouble with. It seems we have made some bad assumptions about the configuration of our machines. It makes sense with other problems we have had on the other machines too. I am going to declare that the root cause of the issues. Thank you all for your help! Good call Ned, I am slightly embarrassed that I didn't think of that earlier.
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56791
2011-07-18 21:38:03ned.deilysetstatus: open -> closed
resolution: fixed -> not a bug
stage: resolved
2011-07-18 21:32:04Paul.Weisssetresolution: fixed
messages: + msg140622
2011-07-18 21:23:01ned.deilysetmessages: + msg140620
2011-07-18 21:19:20ned.deilysetnosy: + ned.deily
messages: + msg140619
2011-07-18 21:04:50r.david.murraysetmessages: + msg140617
2011-07-18 20:45:27Paul.Weisssetmessages: + msg140613
2011-07-18 15:09:36r.david.murraysetmessages: + msg140594
2011-07-18 14:17:04Paul.Weisssetmessages: + msg140584
2011-07-18 14:08:02r.david.murraysetnosy: + r.david.murray
messages: + msg140583
2011-07-18 14:05:47Paul.Weisssetmessages: + msg140581
2011-07-18 13:57:22eric.araujosetnosy: + eric.araujo
messages: + msg140579
2011-07-18 13:47:28Paul.Weisscreate