Message161300
I also had an ImportError on _struct module during 'make install' when building 2.7.3 from source configured with --enable-shared. My solution, which *seems* to have worked, is simple:
$ make -i install
$ make install
My guess is that the part of the 'make install' that copies _struct.so into the correct place occurs AFTER a part of the 'make install' that tries to use it. If you tell make to ignore errors and carry on (-i), it then completes the installation, copies _struct.so (and everything else) into their correct places, and you can then do another make install without any errors!
I hope this helps someone track down a sensible fix, and in the mean-time provides a work-around for the rest of us.
(p.s. remember your PYTHONHOME and PYTHON_PATH should be clear before making) |
|
Date |
User |
Action |
Args |
2012-05-21 22:11:13 | Richard.West | set | recipients:
+ Richard.West, loewis, orsenthil, eric.araujo, hozn, flox, dmalcolm, spprakash, Ari.Consul, asisco, eraonel, miro_ilias, spaceli |
2012-05-21 22:11:12 | Richard.West | set | messageid: <1337638272.86.0.610239375237.issue9631@psf.upfronthosting.co.za> |
2012-05-21 22:11:12 | Richard.West | link | issue9631 messages |
2012-05-21 22:11:12 | Richard.West | create | |
|