Hi,
For a Python program that reads Spss system files I (actually, the .so files from Spss Inc. need it.) need libimf.so, which is the Intel math Fortran library. I am on ubuntu 10 (32 bits).
I downloaded the libraries from the intel website*) I untarred them and ran ran make install.**) Then I tried loading the said .so file with Python ctypes, but I got and OSError ("undefined symbol: __ashldi3"; full traceback below). Any ideas how to solve this?
I tried loading a couple of other .so files from the same library, and they work.
Thanks in advance!
Albert-Jan
PS: please note that I'm a Linux newbie
*)
https://registrationcenter.intel.com...&rm=NCOM&lang=
**)
cd /home/antonia/Downloads/l_fcompxe_2011.2.137_redist
tar zxf '/home/antonia/Downloads/l_fcompxe_2011.2.137_redist.tgz'
make install
***)
>>> import os, ctypes
>>> "libimf.so" in os.listdir("/home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32")
True
>>> ctypes.cdll.LoadLibrary("/home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32/libimf.so")
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
ctypes.cdll.LoadLibrary("/home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32/libimf.so")
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32/libimf.so: undefined symbol: __ashldi3
>>> ctypes.cdll.LoadLibrary("/home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32/libirc.so")
<CDLL '/home/antonia/Downloads/l_fcompxe_2011.2.137_redist/compiler/lib/ia32/libirc.so', handle a547670 at a51b28c>