-
Notifications
You must be signed in to change notification settings - Fork 4
/
prepare.sh
executable file
·66 lines (48 loc) · 1.8 KB
/
prepare.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
set -eu
set -o pipefail
# get sudo rights before user walks away
sudo ls > /dev/null
cd /tmp
# Install R
echo "-------------------"
echo "| INSTALLING R3.4 |"
echo "-------------------"
sudo yum update
sudo yum groupinstall -y "Development Tools"
sudo yum install -y ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel kernel-headers kernel-devel readline-devel gdal.x86_64 gdal-devel.x86_64 gdal-libs.x86_64 proj.x86_64 proj-devel.x86_64 proj-epsg.x86_64 proj-nad.x86_64 netcdf-devel nco libxml2-devel libpng-devel bzip2 bzip2-devel openssl-devel libcurl libcurl-devel libjpeg-turbo-devel
wget https://cran.r-project.org/src/base/R-3/R-3.3.3.tar.gz
tar xvzf R-3.3.3.tar.gz
cd R-3.3.3
./configure --with-x=no
make
sudo make install
# Install R-WRF-Hydro
echo "--------------------------"
echo "| INSTALLING R=WRF-Hydro |"
echo "--------------------------"
mkdir $HOME/.userRLib
echo "options(repos=structure(c(CRAN=\"http://archive.linux.duke.edu/cran\")))" >> $HOME/.Rprofile
/usr/local/bin/Rscript -e "install.packages('devtools')"
/usr/local/bin/Rscript -e "install.packages('rgdal')"
/usr/local/bin/Rscript -e "install.packages('ncdf4')"
/usr/local/bin/Rscript -e "install.packages('RNetCDF')"
/usr/local/bin/Rscript -e "install.packages('ggmap')"
/usr/local/bin/Rscript -e "install.packages('dataRetrieval')"
/usr/local/bin/Rscript -e "install.packages('data.table', dependencies=TRUE)"
/usr/local/bin/Rscript -e "devtools::install_github('NCAR/rwrfhydro')"
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda create -n subset python=3 -y
source activate subset
conda install -y tornado pyproj
pip install multiprocessing-logging
#
#
#
#
#
#
#