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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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. |
|
|