occlum/demos/xgboost/preinstall_deps.sh
2023-03-29 09:31:20 +08:00

20 lines
492 B
Bash
Executable File

#!/bin/bash
set -e
# Tell CMake to search for packages in Occlum toolchain's directory only
export PKG_CONFIG_LIBDIR=/usr/local/occlum/x86_64-linux-musl/lib
# Install dependencies
OS=`awk -F= '/^NAME/{print $2}' /etc/os-release`
if [ "$OS" == "\"Ubuntu\"" ]; then
apt-get update -y && apt-get install -y python3-pip python3-setuptools
else
yum install -y python3-pip python3-setuptools
fi
pip3 install kubernetes
echo "Install dependencies success"
# Install CMake
./install_cmake.sh