[Clfs-support] Python2.7 problem
Randolph D Dach
rdach at telus.net
Tue Feb 19 20:43:12 PST 2013
I have been trying to get Python 2.7.3 working for the last few days. I followed the directions exactly as shown in the CBLFS page. everything compiled properly however when I try to use python it keeps giving me ELFCLAss wrong.
example
$python-32 -c 'import struct;print(8 * struct.clacsize("p")'
returns
32
$python-64 -c 'import struct;print(8 * struct.clacsize("p")'
returns
Traceback (most recent call last):
File "<string>", lin 1, in <module>
File "/usr/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: /usr/lib/python2.7/lib-dynload/_struct.so: wrong ELF class: ELFCLASS32
It seems the python-64 is going to the wrong set of libraries, should be going after the /usr/lib64/python2.7 libraries.
If I use ldd -v /usr/lib/python2.7/lib-dynload/_struct.so it returns showing /usr/lib and /lib libraries
if I use ldd -v /usr/lib64/python2.7/lib-dynload/_struct.so it returns /usr/lib64 and /lib64 libraries.
--
Randolph D Dach <rdach at telus.net>
More information about the Clfs-support
mailing list