Clickhouse ODBC github地址:
由于需要在CentOS 6下使用Clickhouse ODBC,但是提供的编译版本是在CentOS 7下编译的,就需要自己编译了。
0.检查
先在CentOS 6下检查下,报缺乏依赖包ldd libclickhouseodbc.so
./libclickhouseodbc.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./libclickhouseodbc.so)
linux-vdso.so.1 => (0x00007ffff31ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe86034b000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe860146000)
librt.so.1 => /lib64/librt.so.1 (0x00007fe85ff3e000)
libodbc.so.2 => not found
libodbcinst.so.2 => not found
libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007fe85fd34000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe85fab0000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe85f71b000)
/lib64/ld-linux-x86-64.so.2 (0x00000031bfe00000)