-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·55 lines (45 loc) · 1.6 KB
/
install.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
#!/usr/bin/env bash
# Copyright 2016 neurodata (http://neurodata.io/)
# Written by Disa Mhembere (disa@jhu.edu)
#
# This file is part of knor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Ubuntu install script
cd $HOME
# Upgrade GCC to 5
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt-get -y update
apt-get -y install gcc-5 g++-5
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-5
# Make sure the package information is up-to-date
apt-get -y update
apt-get -o Dpkg::Options::="--force-confold" --allow -y upgrade
apt-get install -y python-pip python-dev build-essential
# In memory dependencies
apt-get install -y libboost-all-dev libeigen3-dev
# NUMA
apt-get install -y libnuma-dev libnuma1
# Message Passing Interface
apt-get install -y libmpich-dev
# SEM
apt-get install -y libaio-dev
apt-get install -y libatlas-base-dev
apt-get install -y libgoogle-perftools-dev
#if [ $(dpkg-query -W -f='${Status}' libmpich2-dev 2>/dev/null | grep -c "ok installed")
# -eq 0 ]; then
# apt-get install libmpich2-dev;
#fi
# Source control
apt-get install -y git