I have a 64-bit RHEL host with 32-bit libraries. One of the providers has a 32-bit .so I would like to download in Python using ctypes.
from ctypes import CDLL
CDLL('32bitdinosaur.so')
OSError: 32bitdinosaur.so: wrong ELF class: ELFCLASS32
Of course, 64-bit libraries are fine. For instance:
CDLL('libc.so.6')
It works great.
source
share