-
Notifications
You must be signed in to change notification settings - Fork 74
/
VagrantProvisionCentOS7Deps.sh
executable file
·189 lines (181 loc) · 5.08 KB
/
VagrantProvisionCentOS7Deps.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#!/usr/bin/env bash
set -e
###################################################
# VERY IMPORTANT: Set the $HOOT_HOME environment #
# variable prior to running this script if ~/hoot #
# isn't the correct location for HOOT_HOME #
###################################################
if [ -z "$HOOT_HOME" ]; then
HOOT_HOME=~/hoot
fi
echo HOOT_HOME: $HOOT_HOME
#################################################
# Common set of file versions
source $HOOT_HOME/VagrantProvisionVars.sh
if ! rpm -qa | grep -q ^yum-plugin-versionlock ; then
# Install the versionlock plugin version first.
sudo yum install -y yum-plugin-versionlock >> CentOS_upgrade.txt 2>&1
elif [[ $(yum versionlock list | wc -l) -gt 2 ]] ; then # versionlock list returns two lines if empty
# Remove any version locks to allow upgrading when versions have changed.
sudo yum versionlock delete \
armadillo \
geos \
geos-devel \
glpk \
glpk-devel \
gdal \
gdal-devel \
gdal-python-tools \
google-chrome-stable \
libgeotiff \
libgeotiff-devel \
liboauthcpp \
liboauthcpp-devel \
libphonenumber \
libphonenumber-devel \
libpostal \
libpostal-data \
libpostal-devel \
nodejs \
nodejs-devel \
nodejs-docs \
nodejs-libs \
npm \
proj \
proj-devel \
stxxl \
stxxl-devel \
v8-devel >> CentOS_upgrade.txt 2>&1
fi
echo "### Installing libraries with locked versions"
sudo yum install -y \
armadillo-$ARMADILLO_VERSION \
geos-$GEOS_VERSION \
geos-devel-$GEOS_VERSION \
glpk-$GLPK_VERSION \
glpk-devel-$GLPK_VERSION \
gdal-$GDAL_VERSION \
gdal-devel-$GDAL_VERSION \
gdal-python-tools-$GDAL_VERSION \
google-chrome-stable-$GOOGLE_CHROME_VERSION \
libgeotiff-$LIBGEOTIFF_VERSION \
libgeotiff-devel-$LIBGEOTIFF_VERSION \
liboauthcpp-$LIBOAUTHCPP_VERSION \
liboauthcpp-devel-$LIBOAUTHCPP_VERSION \
libphonenumber-$LIBPHONENUMBER_VERSION \
libphonenumber-devel-$LIBPHONENUMBER_VERSION \
libpostal-$LIBPOSTAL_VERSION \
libpostal-data-$LIBPOSTAL_VERSION \
libpostal-devel-$LIBPOSTAL_VERSION \
npm-$NPM_VERSION \
nodejs-$NODE_VERSION \
nodejs-devel-$NODE_VERSION \
nodejs-docs-$NODE_VERSION \
nodejs-libs-$NODE_VERSION \
proj-$PROJ_VERSION \
proj-devel-$PROJ_VERSION \
stxxl-$STXXL_VERSION \
stxxl-devel-$STXXL_VERSION \
v8-devel-$V8_VERSION
echo "### Locking versions of libraries"
sudo yum versionlock add \
armadillo-$ARMADILLO_VERSION \
geos-$GEOS_VERSION \
geos-devel-$GEOS_VERSION \
glpk-$GLPK_VERSION \
glpk-devel-$GLPK_VERSION \
gdal-$GDAL_VERSION \
gdal-devel-$GDAL_VERSION \
gdal-python-tools-$GDAL_VERSION \
google-chrome-stable-$GOOGLE_CHROME_VERSION \
libgeotiff-$LIBGEOTIFF_VERSION \
libgeotiff-devel-$LIBGEOTIFF_VERSION \
liboauthcpp-$LIBOAUTHCPP_VERSION \
liboauthcpp-devel-$LIBOAUTHCPP_VERSION \
libphonenumber-$LIBPHONENUMBER_VERSION \
libphonenumber-devel-$LIBPHONENUMBER_VERSION \
libpostal-$LIBPOSTAL_VERSION \
libpostal-data-$LIBPOSTAL_VERSION \
libpostal-devel-$LIBPOSTAL_VERSION \
npm-$NPM_VERSION \
nodejs-$NODE_VERSION \
nodejs-devel-$NODE_VERSION \
nodejs-docs-$NODE_VERSION \
nodejs-libs-$NODE_VERSION \
proj-$PROJ_VERSION \
proj-devel-$PROJ_VERSION \
stxxl-$STXXL_VERSION \
stxxl-devel-$STXXL_VERSION \
v8-devel-$V8_VERSION
# install useful and needed packages for working with hootenanny
echo "### Installing dependencies from repos..."
sudo yum -y install \
asciidoc \
autoconf \
autoconf-archive \
automake \
bison \
boost-devel \
bzip2 \
ccache \
cmake \
cppunit-devel \
dblatex \
devtoolset-$DEVTOOLSET_VERSION \
devtoolset-$DEVTOOLSET_VERSION-libasan-devel \
doxygen \
gcc-c++ \
git \
git-core \
gnuplot \
lcov \
libffi-devel \
libicu-devel \
libpng-devel \
libtool \
m4 \
maven \
mlocate \
opencv \
opencv-core \
opencv-devel \
opencv-python \
osmosis \
java-${JDK_VERSION}-openjdk \
perl-XML-LibXML \
parallel \
postgresql${POSTGRESQL_VERSION_DOTLESS} \
postgresql${POSTGRESQL_VERSION_DOTLESS}-contrib \
postgresql${POSTGRESQL_VERSION_DOTLESS}-devel \
postgresql${POSTGRESQL_VERSION_DOTLESS}-server \
protobuf \
protobuf-compiler \
protobuf-devel \
python \
python-devel \
python3 \
python3-devel \
python3-matplotlib \
python3-pip \
python3-setuptools \
qt5-qtbase \
qt5-qtbase-devel \
qt5-qtbase-postgresql \
qt5-qtwebkit \
qt5-qtwebkit-devel \
readline-devel \
redhat-lsb-core \
sqlite-devel \
swig \
tex-fonts-hebrew \
texlive \
texlive-collection-fontsrecommended \
texlive-collection-langcyrillic \
unzip \
vim \
wamerican-insane \
w3m \
wget \
words \
xorg-x11-server-Xvfb \
zip