forked from climate-analyser-team/climate-analyser-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installSlurm.sh
66 lines (56 loc) · 1.51 KB
/
installSlurm.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
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root through sudo." 1>&2
exit 1
fi
RUNASUSER="sudo -u $SUDO_USER"
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.2.tar.gz
tar xf netcdf-4.3.2.tar.gz
cd netcdf-*/
./configure
make
make install
wget https://code.zmaw.de/attachments/download/8591/cdo-current.tar.gz
tar xf cdo-current.tar.gz
cd cdo-*/
./configure --with-netcdf=/usr --with-hdf5=/usr
make
make install
yum -y groupinstall "Development tools"
yum -y install readline-devel
yum -y install perl-devel
yum -y install munge-devel
yum -y install pam-devel
yum -y install perl-DBI
yum -y install mailx
yum -y install gperf
cp slurm.conf /etc/slurm/slurm.conf
yum -y install munge
chown root /etc/munge
chown root /var/lib/munge
chown root /var/log/munge
mkdir /var/run/munge
chown root /var/run/munge
cp munge.key /etc/munge/munge.key
chown root /etc/munge/munge.key
chmod 700 /etc/munge/munge.key
curl http://www.schedmd.com/download/latest/slurm-14.03.7.tar.bz2 -o slurm-14.03.7.tar.bz2
rpmbuild -ta slurm*.tar.bz2
rpm -i /root/rpmbuild/RPMS/x86_64/slurm-*
mkdir /slurm
chown ec2-user /slurm
curl http://www.complang.org/ragel/ragel-6.8.tar.gz -o ragel.tar.gz
tar -xf ragel.tar.gz
cd ragel-6.8
./configure --prefix=/
make
make install
cd ..
svn co https://apps.man.poznan.pl/svn/slurm-drmaa/
cd slurm-drmaa/trunk/
./autogen.sh
./configure --with-slurm-inc=/usr/include/slurm --with-slurm-lib=/usr/lib64/slurm --prefix=/
make
make install
pip install drmaa
pip install pydap
pip install pydap.responses.netcdf