From 15b5160a614bf4bd3a8c2c27cc11ebbb0b11eae5 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Wed, 17 Jul 2024 15:54:18 +0800 Subject: [PATCH] Build glog from source --- scripts/setup-ubuntu.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 85d4004b7848..eb648eb88114 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -47,9 +47,6 @@ SUDO="${SUDO:-"sudo --preserve-env"}" # Install packages required for build. function install_build_prerequisites { ${SUDO} apt update - # The is an issue on 22.04 where a version conflict prevents glog install, - # installing libunwind first fixes this. - ${SUDO} apt install -y libunwind8 ${SUDO} apt install -y \ build-essential \ python3-pip \ @@ -73,7 +70,6 @@ function install_velox_deps_from_apt { libssl-dev \ libicu-dev \ libdouble-conversion-dev \ - libgoogle-glog-dev \ libbz2-dev \ libgflags-dev \ libgmock-dev \ @@ -180,6 +176,14 @@ function install_arrow { -DThrift_SOURCE=BUNDLED } +function install_glog { + wget_and_untar https://github.com/google/glog/archive/v0.6.0.tar.gz glog + ( + cd glog + cmake_install -DBUILD_SHARED_LIBS=ON + ) +} + function install_cuda { # See https://developer.nvidia.com/cuda-downloads if ! dpkg -l cuda-keyring 1>/dev/null; then