找不到ODBC驱动程序“找不到文件错误”

时间:2019-03-07 19:38:54

标签: database odbc clickhouse

我正在尝试连接到数据库,但收到错误file not foundisql也遇到相同的错误。我知道该文件具有正确的权限。

$ isql -v ClickHouse
[01000][unixODBC][Driver Manager]Can't open lib '/usr/lib64/libclickhouseodbc.so' : file not found
[ISQL]ERROR: Could not SQLConnect

$ ls -lrt /usr/lib64/libclickhouseodbc.so
-rwxr-xr-x 1 root root 33920808 Mar  7 14:32 /usr/lib64/libclickhouseodbc.so

$ ldd /usr/lib64/libclickhouseodbc.so
        linux-vdso.so.1 =>  (0x00007fffbf36d000)
        libodbc.so.2 => /usr/lib64/libodbc.so.2 (0x00007f2366d2f000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007f2366a2c000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007f236665f000)
        /lib64/ld-linux-x86-64.so.2 (0x0000558044ea1000)
        libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f2366455000)
        libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f2366250000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f2366034000)

$ which isql | xargs file
/bin/isql: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=dacf3a0f9b65968e63f2ca5b0f79b522f5d7e567, stripped

$ which isql | xargs ldd
        linux-vdso.so.1 =>  (0x00007ffd45fef000)
        libodbc.so.2 => /usr/lib64/libodbc.so.2 (0x00007fe706ad3000)
        libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007fe7068c8000)
        libreadline.so.6 => /usr/lib64/libreadline.so.6 (0x00007fe706682000)
        libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fe70647e000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fe706261000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007fe705e94000)
        libtinfo.so.5 => /usr/lib64/libtinfo.so.5 (0x00007fe705c6a000)
        /lib64/ld-linux-x86-64.so.2 (0x00005638f62f2000)


$ file /usr/lib64/libclickhouseodbc.so 
/usr/lib64/libclickhouseodbc.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=aac633748dcbd6d9bf228372c6dbc524e751c4d0, not stripped

0 个答案:

没有答案