当我运行命令时: sudo isql -v“SELFLOOP”admin admin 我收到以下错误:
[01000][unixODBC][Driver Manager]Can't open lib '/usr/local/lib/bizc/libBBCpi.so' :file not found [ISQL]ERROR: Could not SQLConnect
以下是一些设置: 的 /etc/odbc.ini
[SELFLOOP]
Description = ODBC Driver for Linux
Driver = Client
Server = 127.0.0.1
Database = unixodbc
Port = 10314
/etc/odbcinst.ini
[Client]
Description=ODBC Driver for Linux
Driver=/usr/local/lib/bizc/libBBCpi.so
Threading=1
UsageCount=1
以下是其他一些信息: ldd -v /usr/local/lib/bizc/libBBCpi.so
linux-vdso.so.1 => (0x00007fff43b95000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f99d5b30000)
libm.so.6 => /lib64/libm.so.6 (0x00007f99d58ab000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f99d5695000)
libc.so.6 => /lib64/libc.so.6 (0x00007f99d5303000)
/lib64/ld-linux-x86-64.so.2 (0x00000033d9000000)
Version information:
/usr/local/lib/bizc/libBBCpi.so:
libgcc_s.so.1 (GCC_3.0) => /lib64/libgcc_s.so.1
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
libstdc++.so.6 (CXXABI_1.3) => /usr/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6:
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
libgcc_s.so.1 (GCC_4.2.0) => /lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.3) => /lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.0) => /lib64/libgcc_s.so.1
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libm.so.6:
libc.so.6 (GLIBC_PRIVATE) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libgcc_s.so.1:
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
echo $ LD_LIBRARY_PATH
:/usr/java/jdk1.6.0_41/jre/lib/amd64/server:/usr/local/lib/bizc/
我已尝试过所有内容,但我无法解读此错误。
非常感谢任何帮助。感谢!
答案 0 :(得分:0)
也许你有一个32位的isql和unixODBC并且你正在尝试使用64位驱动程序。例如,file命令对isql说了什么(链中的所有组件都需要相同)。您总是可以尝试在strace下运行,以查看哪些系统调用失败。