From db723a360fb8c5794236315c3a82314aa2667697 Mon Sep 17 00:00:00 2001 From: zfb132 Date: Tue, 21 Mar 2023 13:07:14 +0000 Subject: [PATCH 1/2] fix bug: no match for operator << --- pcclassify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcclassify.cpp b/pcclassify.cpp index d66800a..9add762 100644 --- a/pcclassify.cpp +++ b/pcclassify.cpp @@ -59,7 +59,7 @@ int main(int argc, char **argv){ ClassifierType ctype = fingerprint(modelFile); #ifndef WITH_GBT - if (ctype == GradientBoostedTrees) throw std::runtime_error(modelFile + " is a GBT model but GBT support has not been built (try building with -DWITH_GBT=ON)") << std::endl; + if (ctype == GradientBoostedTrees) throw std::runtime_error(modelFile + " is a GBT model but GBT support has not been built (try building with -DWITH_GBT=ON)"); #endif std::cout << "Model: " << (ctype == RandomForest ? "Random Forest" : "Gradient Boosted Trees") << std::endl; From 11eb7c7ce3ef5bedecafc93f74d9f1a4e80f8164 Mon Sep 17 00:00:00 2001 From: zfb132 Date: Tue, 21 Mar 2023 13:07:55 +0000 Subject: [PATCH 2/2] fix bug: could not find git for clone of lightgbm --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d6b891f..10eed6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM ubuntu:22.04 as builder ENV TZ=Europe/Rome RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get update && apt install -y --fix-missing --no-install-recommends \ + git \ build-essential \ software-properties-common \ cmake \