InformixDB 2.5:符号SQLSTATE:未找到引用的符号

时间:2014-02-04 13:51:50

标签: python informix symbols importerror relocation

我在Solaris 10 Sparc上成功安装了Python2.5.6和InformixDB2.5

当我运行脚本时,我收到以下错误:

import informixdb

  File "/usr/local/lib/python2.5/site-packages/informixdb.py", line 146, in <module>
    from _informixdb import *
ImportError: ld.so.1: python2.5: fatal: relocation error: file /usr/local/lib/python2.5/site-packages/_informixdb.so: symbol SQLSTATE: referenced symbol not found

ldd -d /usr/local/lib/python2.5/site-packages/_informixdb.so给了我以下输出:

libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libm.so.2 =>     /lib/libm.so.2
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libc.so.1 =>     /lib/libc.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        symbol not found: SQLSTATE              (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyExc_StandardError           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: sqlca         (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: _Py_ZeroStruct                (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: SQLCODE               (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyType_GenericNew             (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyType_GenericAlloc           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyExc_ImportError             (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyList_Type           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyBuffer_Type         (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: _Py_NoneStruct                (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyExc_StopIteration           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyType_Type           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: _Py_TrueStruct                (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyExc_TypeError               (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyObject_Free         (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        symbol not found: PyBool_Type           (/usr/local/lib/python2.5/site-packages/_informixdb.so)
        /platform/SUNW,Sun-Fire-T1000/lib/libmd_psr.so.1
        /platform/SUNW,Sun-Fire-T1000/lib/libc_psr.so.1

我还没有找到解决方案或类似问题。

任何人都知道如何解决这个问题?

问候

0 个答案:

没有答案