Skip to content

Commit c991df6

Browse files
committed
Update ubuntu requirements
1 parent d569985 commit c991df6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ubuntu-requirements.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
1313
apt-get -y update
1414
apt-get -y install \
1515
cmake \
16-
g++-7 \
16+
g++-9 \
1717
git \
1818
python3-dev \
1919
python3-numpy \
@@ -22,7 +22,8 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
2222

2323
# install bazel
2424
export BAZEL_VERSION=${BAZEL_VERSION:-`cat $(dirname "$0")/Dockerfiles/BAZEL_VERSION`}
25-
apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
25+
apt-get -y install pkg-config zip g++ zlib1g-dev unzip python3
26+
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
2627
bazel_installer=bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
2728
wget -P /tmp https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${bazel_installer}
2829
chmod +x /tmp/${bazel_installer}
@@ -33,4 +34,4 @@ else
3334
echo "This script supports only Debian-based operating systems (like Ubuntu)." \
3435
"Please consult README file for manual installation on your '$OSTYPE' OS."
3536
exit 1
36-
fi
37+
fi

0 commit comments

Comments
 (0)