-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprerequisites.sh
More file actions
executable file
·56 lines (43 loc) · 1.17 KB
/
Copy pathprerequisites.sh
File metadata and controls
executable file
·56 lines (43 loc) · 1.17 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Copyright 2025 ResRipper.
# SPDX-License-Identifier: Apache-2.0
# Install all prerequisites
PARALLEL=${PARALLEL:-false}
# If TeXLive from distro is obsoleted
# > https://wiki.debian.org/TeXLive
TEXLIVE_OBSOLETE=${TEXLIVE_OBSOLETE:-true}
TEXLIVE_VER=${TEXLIVE_VER:-2023}
sudo apt update
BUILD_TOOLS=(
'gcc' 'g++' 'gfortran'
'autoconf' 'automake' 'cmake' 'make'
'git' 'libtool'
)
# Common dependencies
DEPS=(
'adms' 'bison' 'flex'
'libblas-dev' 'libfftw3-dev' 'libfl-dev'
'liblapack-dev' 'libmetis-dev' 'libomp-dev'
'libsuitesparse-dev'
# Documentation
'latexmk' 'texlive'
)
# Dependencies - Parallel
DEPS_PRL=(
'libopenmpi-dev'
'libparmetis-dev'
)
sudo apt install -y "${BUILD_TOOLS[@]}" "${DEPS[@]}"
if [ "$PARALLEL" = true ]; then
sudo apt install -y "${DEPS_PRL[@]}"
fi
# LaTeX dependencies
tlmgr init-usertree
## Change mirror
## Mirror list: https://www.tug.org/historic/
if [ "$TEXLIVE_OBSOLETE" = true ]; then
tlmgr option repository \
"https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${TEXLIVE_VER}/tlnet-final/"
fi
tlmgr install enumitem framed kastrup \
multirow newtx optional pgf preprint