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 9e1b0c5 commit 15b5160
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15b5160

Please sign in to comment.