Issue 12582: lib-dynload missing in python install (original) (raw)

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 import struct File "/opt/Python-2.7/lib/python2.7/struct.py", line 1, in 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:19 admin set github: 56791
2011-07-18 21:38:03 ned.deily set status: open -> closedresolution: fixed -> not a bugstage: resolved
2011-07-18 21:32:04 Paul.Weiss set resolution: fixedmessages: +
2011-07-18 21:23:01 ned.deily set messages: +
2011-07-18 21:19:20 ned.deily set nosy: + ned.deilymessages: +
2011-07-18 21:04:50 r.david.murray set messages: +
2011-07-18 20:45:27 Paul.Weiss set messages: +
2011-07-18 15:09:36 r.david.murray set messages: +
2011-07-18 14:17:04 Paul.Weiss set messages: +
2011-07-18 14:08:02 r.david.murray set nosy: + r.david.murraymessages: +
2011-07-18 14:05:47 Paul.Weiss set messages: +
2011-07-18 13:57:22 eric.araujo set nosy: + eric.araujomessages: +
2011-07-18 13:47:28 Paul.Weiss create