diff --git a/src/scripts/install_fastnetmon_dependencies.pl b/src/scripts/install_fastnetmon_dependencies.pl index 87451ed..1baa5e3 100755 --- a/src/scripts/install_fastnetmon_dependencies.pl +++ b/src/scripts/install_fastnetmon_dependencies.pl @@ -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', diff --git a/src/scripts/perllib/Fastnetmon.pm b/src/scripts/perllib/Fastnetmon.pm index 8202d12..e49f856 100644 --- a/src/scripts/perllib/Fastnetmon.pm +++ b/src/scripts/perllib/Fastnetmon.pm @@ -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 {