Closed danaki closed 4 years ago
Similar to #293. Your system is lacking full support of std::variant
.
That's why the requirements include macOS 10.14:
https://github.com/ClickHouse/clickhouse-odbc/blob/master/README.md#build-time-dependencies--1
Yes, mine is 10.15.6
Xcode version?
$ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.31.1) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Do you have Xcode installed, or just the Command Line Tools?
I think I have just Command Line. Do I need Xcode to make it build?
I believe, yes.
And while Xcode is downloading... I have programs/odbc-bridge
under official ClickHouse sources but I don't know how to build it properly, there're no instructions provided. Is that the same program merged from this repository?
And while Xcode is downloading... I have
programs/odbc-bridge
under official ClickHouse sources but I don't know how to build it properly, there're no instructions provided. Is that the same program merged from this repository?
Should be built automatically together with ClickHouse itself.
I believe, yes.
I've installed Xcode, removed CMakeCache.txt and CMakeFiles and repeated the build commands. Result is the same -- error complaining: /Users/up/work/clickhouse-odbc/driver/attributes.h:123:28: error: no viable overloaded '='
And while Xcode is downloading... I have
programs/odbc-bridge
under official ClickHouse sources but I don't know how to build it properly, there're no instructions provided. Is that the same program merged from this repository?Should be built automatically together with ClickHouse itself.
I followed ClickHouse building instructions and it seems odbc is not built by default. I see this in logs:
2020.08.27 02:10:05.150505 [ 1942009 ] {963012d3-4c64-49d3-a2d3-3ca28b6f1fd2} <Trace> ODBCBridgeHelper: Starting clickhouse-odbc-bridge
2020.08.27 02:10:05.152105 [ 1942009 ] {963012d3-4c64-49d3-a2d3-3ca28b6f1fd2} <Trace> ShellCommand: Will start shell command '/Users/up/work/ClickHouse/build/programs/clickhouse-odbc-bridge' with arguments '/Users/up/work/ClickHouse/build/programs/clickhouse-odbc-bridge', 'odbc-bridge', '--http-port', '9018', '--listen-host', 'localhost', '--http-timeout', '1800000000'
2020.08.27 02:10:05.155747 [ 1942009 ] {963012d3-4c64-49d3-a2d3-3ca28b6f1fd2} <Trace> ShellCommand: Started shell command '/Users/up/work/ClickHouse/build/programs/clickhouse-odbc-bridge' with pid 38565
2020.08.27 02:10:05.155816 [ 1942009 ] {963012d3-4c64-49d3-a2d3-3ca28b6f1fd2} <Trace> ODBCBridgeHelper: Checking clickhouse-odbc-bridge is running, try 1
There's no such executable as /Users/up/work/ClickHouse/build/programs/clickhouse-odbc-bridge
.
clickhouse-odbc-bridge
is not related to clickhouse-odbc
.
clickhouse-odbc-bridge
is a client helper executable, that is used when you query ODBC data sources from within ClickHouse.
clickhouse-odbc
is a binary, an ODBC driver for querying ClickHouse as a data source, from various products that can act as an ODBC client.
I've installed Xcode, removed CMakeCache.txt and CMakeFiles
Remove the entire build/ directory.
What is the output of xcode-select -p
?
/Applications/Xcode.app/Contents/Developer
, ok, now it compiles.
Ok, seems I need to find out why clickhouse-odbc-bridge
was not automatically compiled because I just need to query postgres database from ClickHouse.
I guess this issue can be closed.
@danaki Hi! What you finally did to make it compile? I've got the same stuck, and installing x-code made no sense
@sablastik I think I moved to docker version
Following steps:
Getting error: