-
Notifications
You must be signed in to change notification settings - Fork 11
/
install_system_deps.sh
44 lines (36 loc) · 1.09 KB
/
install_system_deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
set -e
# Install system dependencies
apt-get update -y
apt-get install -y --ignore-missing \
software-properties-common \
xvfb \
libgtk-3-0 \
libnotify4 \
libsdl1.2debian \
libosmesa6 \
bzip2 \
wget \
rsync \
git \
bc \
libopenblas-dev \
gfortran \
libhdf5-dev \
openssh-client
apt install -y locales
locale-gen en_US.UTF-8
locale-gen en_GB.UTF-8
update-locale
cat /etc/lsb-release | grep "14.04" && apt-get install -y libspatialindex-c3 || true
cat /etc/lsb-release | grep "16.04" && apt-get install -y libspatialindex-c4v5 || true
cat /etc/lsb-release | grep "18.04" && apt-get install -y libspatialindex-c4v5 || true
cat /etc/lsb-release | grep "20.04" && apt-get install -y libspatialindex-c6 || true
# "pip install rtree" doesn't seem to
# lookup libspatialindex correctly
pushd /usr/lib/x86_64-linux-gnu/ > /dev/null
lsi=`ldconfig -p | grep libspatialindex.so | tr -d '\t' | cut -d ' ' -f 1`
lsi_c=`ldconfig -p | grep libspatialindex_c.so | tr -d '\t' | cut -d ' ' -f 1`
ln -s "$lsi" libspatialindex.so
ln -s "$lsi_c" libspatialindex_c.so
popd > /dev/null