-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall-dependency.sh
executable file
·75 lines (62 loc) · 2.46 KB
/
install-dependency.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
#!/bin/bash -
#
# Setup txn-compound on CentOS7
#
# by Garima Gehlot, [email protected]
# by Ming Chen, [email protected]
#=============================================================================
set -o nounset # treat unset variables as an error
set -o errexit # stop script if command fail
export PATH="/bin:/usr/bin:/sbin:/usr/local/bin"
IFS=$' \t\n' # reset IFS
unset -f unalias # make sure unalias is not a function
\unalias -a # unset all aliases
ulimit -H -c 0 -- # disable core dump
hash -r # clear the command path hash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# got to the root of this git repo
cd $DIR/../
# NFS-ganesha specific
git submodule update --init --recursive
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
rpm -ivh epel-release-7-6.noarch.rpm
#sudo yum -y update
# clean up the yum cache directory to get rid of
# obsolete headers, if any
#sudo yum clean all
yum install -y cmake
yum install -y glog-devel gflags-devel libgssglue-devel
yum install -y openssl-devel
yum install -y libnfsidmap-devel
yum install -y doxygen
yum install -y gperftools-devel gperftools-libs # for tcmalloc
yum install -y protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
yum install -y lmdb-devel jemalloc-devel tbb-devel libaio-devel cryptopp-devel
yum -y groupinstall "Development Tools"
yum install -y glibc-headers
yum install -y gcc-c++
yum install -y bison flex
yum install -y libcurl-devel boost-system boost-filesystem boost-regex
yum install -y boost-static
yum install -y glib2-devel glib-devel
yum install -y automake autoconf libtool
yum install -y libcap-devel libwbclient-devel libuuid-devel libblkid-devel
# To resolve https://github.com/nfs-ganesha/nfs-ganesha/issues/67
yum install -y libtirpc
mkdir -p /opt
cd /opt
# setup gmock and gtest
if [ ! -d gmock-1.7.0 ]; then
wget https://github.com/google/googlemock/archive/release-1.7.0.zip
unzip release-1.7.0.zip
mv googlemock-release-1.7.0 gmock-1.7.0
cd gmock-1.7.0
wget https://github.com/google/googletest/archive/release-1.7.0.zip
unzip release-1.7.0.zip
mv googletest-release-1.7.0 gtest
autoreconf -fvi
./configure
make
fi
echo "GOOGLE_MOCK is installed at /opt/gmock-1.7.0"
echo "GOOGLE_TEST is installed at /opt/gmock-1.7.0/gtest"