setup_centos_vm.sh 2.3 KB
Newer Older
kyleabeauchamp's avatar
kyleabeauchamp committed
1
2
3
4
5
6
7
8
# Prepare a vagrant CentOS 6.5 VM for building OpenMM
# Needs latest version of vagrant to auto-download the chef package
#vagrant init chef/centos-6.5
#vagrant up
#vagrant ssh


# Download and enable the EPEL RedHat EL extras repository
kyleabeauchamp's avatar
kyleabeauchamp committed
9
mkdir ~/Software
kyleabeauchamp's avatar
kyleabeauchamp committed
10
11
cd Software
sudo yum install wget -y
12
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
kyleabeauchamp's avatar
kyleabeauchamp committed
13
14
sudo rpm -i epel-release-6-8.noarch.rpm

kyleabeauchamp's avatar
kyleabeauchamp committed
15
sudo yum update -y
kyleabeauchamp's avatar
kyleabeauchamp committed
16
17

# Several of these come from the EPEL repo
18
19
sudo yum install clang cmake28 graphviz perl flex bison rpm-build texlive texlive-latex ghostscript gcc gcc-c++ git vim -y
# Note: changed from clang-3.4 to clang because the package has apparently been renamed.  KAB Oct 2 2014.  
kyleabeauchamp's avatar
kyleabeauchamp committed
20
21
22
23
24

# Probably can't use RHEL6 version of doxygen because it's very old.
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.7.src.tar.gz
rpmbuild -ta doxygen-1.8.7.src.tar.gz
sudo rpm -i ~/rpmbuild/RPMS/x86_64/doxygen-1.8.7-1.x86_64.rpm
25
rm ~/rpmbuild -r
kyleabeauchamp's avatar
kyleabeauchamp committed
26

kyleabeauchamp's avatar
kyleabeauchamp committed
27
28
29
30

sudo yum clean headers
sudo yum clean packages

kyleabeauchamp's avatar
kyleabeauchamp committed
31
32
33
34
35
36
# Install CUDA6 for RHEL6
cd ~/Software
wget http://developer.download.nvidia.com/compute/cuda/repos/rhel6/x86_64/cuda-repo-rhel6-6.0-37.x86_64.rpm
sudo rpm -i  cuda-repo-rhel6-6.0-37.x86_64.rpm
sudo yum clean expire-cache
sudo yum install cuda -y
37
rm cuda-repo-rhel6-6.0-37.x86_64.rpm
kyleabeauchamp's avatar
kyleabeauchamp committed
38

39
sudo yum update -y  # Force a second update, in case CUDA has necessary patches.
kyleabeauchamp's avatar
kyleabeauchamp committed
40

kyleabeauchamp's avatar
kyleabeauchamp committed
41
# Install Conda
kyleabeauchamp's avatar
kyleabeauchamp committed
42
cd ~/Software
43
44
wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh
bash Miniconda-3.7.0-Linux-x86_64.sh -b
kyleabeauchamp's avatar
kyleabeauchamp committed
45

kyleabeauchamp's avatar
kyleabeauchamp committed
46
47
# So there is a bug in some versions of anaconda where the path to swig files is HARDCODED.  Below is workaround.  See https://github.com/ContinuumIO/anaconda-issues/issues/48
sudo ln -s  ~/miniconda/ /opt/anaconda1anaconda2anaconda3
kyleabeauchamp's avatar
kyleabeauchamp committed
48

kyleabeauchamp's avatar
kyleabeauchamp committed
49
50
export PATH=$HOME/miniconda/bin:$PATH
conda config --add channels http://conda.binstar.org/omnia
51
conda install --yes fftw3f jinja2 swig sphinx conda-build cmake binstar
kyleabeauchamp's avatar
kyleabeauchamp committed
52
53


kyleabeauchamp's avatar
kyleabeauchamp committed
54
55
56
57
# Download AMD APP SDK from here, requires click agreement: http://developer.amd.com/amd-license-agreement-appsdk/
# Ideally we could cache this on AWS or something...
mkdir ~/Software/AMD
cd ~/Software/AMD
58
# Copy the tarball to the directory containing VagrantFile, which will be shared on the guest as /vagrant/
kyleabeauchamp's avatar
kyleabeauchamp committed
59
60
61
cp /vagrant/AMD-APP-SDK-v2.9-lnx64.tgz  ./
tar -zxvf  /vagrant/AMD-APP-SDK-v2.9-lnx64.tgz
sudo ./Install-AMD-APP.sh
kyleabeauchamp's avatar
kyleabeauchamp committed
62