-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPrerequisites_BadlandsMarch2020.txt
96 lines (31 loc) · 1.95 KB
/
Prerequisites_BadlandsMarch2020.txt
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
sudo apt-get update -y
sudo apt-get install -y git python python-numpy python-scipy python-pip python-dev python-setuptools python-matplotlib libzmq3-dev pkg-config libfreetype6-dev libopenmpi-dev openmpi-bin libhdf5-dev liblapack-dev libedit-dev gfortran libnetcdf-dev python-mpltoolkits.basemap
##sudo apt-get install libpng3 llvm-3.6 # Currently causing crashes due to latest upgrade
sudo pip install -U setuptools
sudo pip install -U pip # fixes AssertionError in Ubuntu pip
sudo pip install enum34
sudo pip install jupyter markupsafe zmq singledispatch backports_abc certifi jsonschema ipyparallel path.py matplotlib mpi4py==1.3.1
sudo pip install Cython==0.20 h5py scipy numpy ez_setup numba
sudo pip install plotly==2.3.0
# sudo pip install gFlex (If does not work, install using github Link https://github.com/awickert/gFlex) (download and install via the folder setup.py)
sudo pip install netcdf4 colorlover scikit-fuzzy pyevtk cmocean
pip install Pillow
sudo apt-get install python-tk
pip install pandas
sudo apt-get install libgfortran3
pip install dbfpy (needed for continental Bayeslands Aus only)
new update - 2020
sudo pip install git+https://github.com/drufat/triangle ( no need for this )
sudo pip install tribad (ensure all import triangle is changed to import tribad as triangle in pyBadlands files - use Atom)
Step 2:
git clone https://github.com/badlands-model/badlands.git
cd BadLands/pyBadlands/libUtils
sudo make
# Go to parent directory of cloned repo such as home and run
sudo pip install -e paralleltemp_Bayeslands (foldername - or pt-Bayeslands)
Step 3:
cd to home directory /home/
nano .bashrc
#add path at the end replacing 'home/danial' with relevant path of your local repo
export LD_LIBRARY_PATH="/home/danial/BadLands/pyBadlands/libUtils:$LD_LIBR$" (should be your path)
export PYTHON_PATH="/home/danial/BadLands/pyBadlands/libUtils:$PYTHON_PATH" (should be your path)