我正在尝试按照此处找到的步骤在CentOS7上安装unixODBC:
https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-Oracle-from-RHEL-or-Centos
我已经完成了所有步骤,直到要求它测试oracle驱动程序istallation。运行dltest /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
时,出现以下错误:
# dltest /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
[dltest] ERROR dlopen: file not found
然后我在libsqora.so.11.1
文件上运行ldd:
# ldd libsqora.so.11.1
ldd: warning: you do not have execution permission for `./libsqora.so.11.1'
linux-vdso.so.1 => (0x00007ffd57f6f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f55a0534000)
libm.so.6 => /lib64/libm.so.6 (0x00007f55a0232000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f55a0016000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f559fdfc000)
libclntsh.so.11.1 => /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
(0x00007f559d48d000)
libodbcinst.so.1 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f559d0c0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f55a0738000)
libnnz11.so => /usr/lib/oracle/11.2/client64/lib/libnnz11.so
(0x00007f559ccf3000)
libaio.so.1 => /lib64/libaio.so.1 (0x00007f559caf1000)