Skip to content

Commit

Permalink
Build glog from source
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jul 17, 2024
1 parent e6d5125 commit 4aee993
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,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 \
Expand All @@ -72,7 +69,6 @@ function install_velox_deps_from_apt {
libssl-dev \
libicu-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libbz2-dev \
libgflags-dev \
libgmock-dev \
Expand Down Expand Up @@ -184,6 +180,14 @@ function install_arrow {
)
}

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
Expand All @@ -207,6 +211,7 @@ function install_velox_deps {
run_and_time install_conda
run_and_time install_duckdb
run_and_time install_arrow
run_and_time install_glog
}

function install_apt_deps {
Expand Down

0 comments on commit 4aee993

Please sign in to comment.