Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade boost version to v1.75.0 for leaf #4211

Merged
merged 8 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions k8s/internal/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
WORKING_DIR := $(dir $(MKFILE_PATH))
SHORT_SHA := $(shell git rev-parse --short HEAD)
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
WORKING_DIR := $(dir $(MKFILE_PATH))
SHORT_SHA := $(shell git rev-parse --short HEAD)
VINEYARD_VERSION_FILE := ${WORKING_DIR}/../../V6D_VERSION

.PHONY: graphscope-jupyter-manylinux2014-py3 graphscope-py3-package graphscope-client-py3-package
.PHONY: graphscope-darwin-py3 graphscope-client-darwin-py3
Expand Down Expand Up @@ -43,7 +44,7 @@ GRAPHSCOPE_HOME ?= /usr/local
INSTALL_PREFIX ?= /opt/graphscope

VERSION ?= latest
VINEYARD_VERSION ?= v0.23.0
VINEYARD_VERSION ?= $(shell cat $(VINEYARD_VERSION_FILE))
PROFILE ?= release
CI ?= false

Expand Down
16 changes: 9 additions & 7 deletions python/graphscope/gsctl/scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,22 @@ install_glog() {
rm -rf "${tempdir:?}/${directory:?}" "${tempdir:?}/${file:?}"
}

# boost for centos
# boost with leaf for centos and ubuntu
install_boost() {
if [[ -f "${install_prefix}/include/boost/version.hpp" ]]; then
return 0
fi
pushd "${tempdir}" || exit
directory="boost_1_74_0"
directory="boost_1_75_0"
file="${directory}.tar.gz"
url="https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source"
url="https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source"
url=$(set_to_cn_url ${url})
download_and_untar "${url}" "${file}" "${directory}"
pushd ${directory} || exit
# seastar needs filesystem program_options thread unit_test_framework
# interactive needs context regex date_time
./bootstrap.sh --prefix="${install_prefix}" \
--with-libraries=system,filesystem,context,program_options,regex,thread,random,chrono,atomic,date_time
--with-libraries=system,filesystem,context,program_options,regex,thread,random,chrono,atomic,date_time,test
./b2 install link=shared runtime-link=shared variant=release threading=multi
popd || exit
popd || exit
Expand Down Expand Up @@ -555,8 +557,6 @@ install_vineyard() {
fi
pushd ${directory} || exit

# make sure it complain loudly if installing vineyard fails
set -e
cmake . -DCMAKE_PREFIX_PATH="${install_prefix}" \
-DCMAKE_INSTALL_PREFIX="${V6D_PREFIX}" \
-DBUILD_VINEYARD_TESTS=OFF \
Expand Down Expand Up @@ -699,7 +699,7 @@ install_basic_packages() {
}

ANALYTICAL_MACOS=("apache-arrow" "boost" "gflags" "glog" "open-mpi" "openssl@1.1" "protobuf" "grpc" "rapidjson" "msgpack-cxx" "librdkafka" "patchelf")
ANALYTICAL_UBUNTU=("libboost-all-dev" "libopenmpi-dev" "libgflags-dev" "libgoogle-glog-dev" "libprotobuf-dev" "libgrpc++-dev" "libmsgpack-dev" "librdkafka-dev" "protobuf-compiler-grpc" "rapidjson-dev")
ANALYTICAL_UBUNTU=("libopenmpi-dev" "libgflags-dev" "libgoogle-glog-dev" "libprotobuf-dev" "libgrpc++-dev" "libmsgpack-dev" "librdkafka-dev" "protobuf-compiler-grpc" "rapidjson-dev")
ANALYTICAL_CENTOS_7=("librdkafka-devel" "msgpack-devel" "rapidjson-devel")
ANALYTICAL_CENTOS_8=("${ANALYTICAL_CENTOS_7[@]}" "boost-devel" "gflags-devel" "glog-devel")

Expand Down Expand Up @@ -732,6 +732,8 @@ install_analytical_dependencies() {
${SUDO} apt-get install -y libarrow-dev=${ARROW_VERSION}-1 libarrow-dataset-dev=${ARROW_VERSION}-1 libarrow-acero-dev=${ARROW_VERSION}-1 libparquet-dev=${ARROW_VERSION}-1
rm /tmp/apache-arrow-apt-source-latest-*.deb
fi
# install boost >= 1.75 for leaf
install_boost
else
if [[ "${OS_VERSION}" -eq "7" ]]; then
${SUDO} yum install -y ${ANALYTICAL_CENTOS_7[*]}
Expand Down
Loading