ClickHouse / clickhouse-odbc

ODBC driver for ClickHouse
https://clickhouse.tech
Apache License 2.0
244 stars 86 forks source link

Build issue on Redhat #160

Closed ibrarahmad closed 5 years ago

ibrarahmad commented 5 years ago

[ 0%] Built target gtest-lib [ 54%] Built target crypto-objects [ 54%] Built target crypto [ 54%] Built target crypto-shared [ 57%] Built target ssl-objects [ 57%] Built target ssl-shared [ 57%] Built target ssl [ 58%] Built target tls-objects [ 58%] Built target tls [ 59%] Built target tls-shared [ 77%] Built target Foundation [ 79%] Built target Encodings [ 82%] Built target Util [ 91%] Built target Net [ 93%] Built target Crypto [ 96%] Built target NetSSL [ 97%] Built target clickhouse-odbc-log [ 97%] Built target clickhouse-odbc-escaping [ 97%] Building CXX object driver/CMakeFiles/clickhouse-odbcw.dir/attr.cpp.o In file included from /home/ibrar/clickhouse-odbc/driver/attr.cpp:5:0: /home/ibrar/clickhouse-odbc/driver/utils.h:7:19: fatal error: codecvt: No such file or directory

include

               ^

compilation terminated. driver/CMakeFiles/clickhouse-odbcw.dir/build.make:62: recipe for target 'driver/CMakeFiles/clickhouse-odbcw.dir/attr.cpp.o' failed make[2]: [driver/CMakeFiles/clickhouse-odbcw.dir/attr.cpp.o] Error 1 CMakeFiles/Makefile2:1037: recipe for target 'driver/CMakeFiles/clickhouse-odbcw.dir/all' failed make[1]: [driver/CMakeFiles/clickhouse-odbcw.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2

proller commented 5 years ago

What compiler do you use? Looks like you have too old complier/stdlib without std::codecvt support.

ibrarahmad commented 5 years ago

It was gcc 4.8, I installed gcc 6 and it works now.

On Thu, Mar 7, 2019 at 11:57 PM proller notifications@github.com wrote:

What compiler do you use? Looks like you have too old complier/stdlib without std::codecvt support.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yandex/clickhouse-odbc/issues/160#issuecomment-470650456, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbS8t8kyrfTiOUgFwfz9zL_ZwOeHZgXks5vUWEZgaJpZM4bh-2k .

-- Ibrar Ahmed

ibrarahmad commented 5 years ago

Somehow I managed to compile that on Redhat but unable to run that. By the way, it works fine on Ubuntu.

$ 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)

On Fri, Mar 8, 2019 at 12:05 AM alexey-milovidov notifications@github.com wrote:

Closed #160 https://github.com/yandex/clickhouse-odbc/issues/160.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yandex/clickhouse-odbc/issues/160#event-2188170954, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbS8vVCKpLvbhZGDfDLHE5K6504tNgoks5vUWLbgaJpZM4bh-2k .

-- Ibrar Ahmed