1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 09:12:14 +01:00

Added logic to build Clickhouse client library

This commit is contained in:
Pavel Odintsov 2024-02-27 11:50:50 +00:00
parent 2a31585098
commit 09cb3f55cd
2 changed files with 27 additions and 0 deletions

@ -109,6 +109,8 @@ sub main {
'rdkafka_1_7_0',
'cppkafka_0_3_1',
'clickhouse_2_3_0',
'gobgp_3_12_0',
'log4cpp_1_1_4',
'gtest_1_13_0'
@ -605,6 +607,17 @@ sub main {
'ubuntu:22.04' => 'c547ecc1e5d94f557184fe7a9202a56065edc5afcb71d8b803be7d864c20422af889a7ed693623280ee0a0991cabde99901edfa5ed02a352d9bd63f716277f42',
'ubuntu:aarch64:22.04'=> 'c51ac309888e879d303f4aefaaeba1d86c1e2159a77dc9f0c8e8e0638c1a80f133f32b197cd4aca7e7ca49142ad7e96d964542444de94817eeb2bb608c8e348c',
},
'clickhouse_2_3_0' => {
'centos:7' => 'tbd',
'centos:8' => 'tbd',
'centos:aarch64:8' => 'tbd',
'centos:9' => 'tbd',
'centos:aarch64:9' => 'tbd',
'debian:9' => 'tbd',
'debian:10' => 'tbd',
'debian:11' => 'tbd',
'debian:aarch64:11' => 'tbd'
},
'cppkafka_0_3_1' => {
'centos:7' => '47fc81102062f418a0895f2787bf337da8d7e766b178ed315284cc12913c58b99e395ad044e2e5954299c3c9cde23b3145dc43d4469d360aee66cc850b09b82e',

@ -1021,6 +1021,20 @@ sub install_rdkafka {
return 1;
}
sub install_clickhouse {
my $folder_name = shift;
my $clickhouse_install_path = "$library_install_folder/$folder_name";
my $res = install_cmake_based_software("https://github.com/ClickHouse/clickhouse-cpp/archive/refs/tags/v2.3.0.tar.gz", "08a4a2e45ddcb33941c22f5e02177805d7fdd664",
$clickhouse_install_path, "$ld_library_path_for_make $cmake_path -DCMAKE_INSTALL_PREFIX:STRING=$clickhouse_install_path -DCMAKE_C_COMPILER=$default_c_compiler_path -DCMAKE_CXX_COMPILER=$default_cpp_compiler_path -DBUILD_SHARED_LIBS:BOOL=ON ..");
if (!$res) {
die "Could not install libclickhouse\n";
}
1;
}
sub install_elfutils {