summaryrefslogtreecommitdiffstats
path: root/src/rhel/install_build_deps.sh
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2017-05-06 22:44:32 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2017-05-23 08:19:46 +0000
commitdb68b7e767351f8b59db586e4035f501facf92a9 (patch)
tree519f80a4bec935d62e42df1654e21f944ddf6be6 /src/rhel/install_build_deps.sh
parent386995473879eb0502c502ad69d06e2d5bd9d7a9 (diff)
src: build and install collectd on centos/rhel
Modify build and dependency scripts for centos/rhel builds. Change-Id: I1fafaf3392d9f22837ce4ed3fa0f84c13ead0698 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'src/rhel/install_build_deps.sh')
-rwxr-xr-xsrc/rhel/install_build_deps.sh59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/rhel/install_build_deps.sh b/src/rhel/install_build_deps.sh
new file mode 100755
index 00000000..583089a5
--- /dev/null
+++ b/src/rhel/install_build_deps.sh
@@ -0,0 +1,59 @@
+#!/bin/bash
+#
+# Build a base machine for RHEL distro
+#
+# Copyright 2017 OPNFV
+#
+# 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.
+#
+# Contributors:
+# Aihua Li, Huawei Technologies.
+# Martin Klozik, Intel Corporation.
+# Maryam Tahhan, Intel Corporation.
+# Synchronize package index files
+yum -y update
+
+# For collectd
+yum install -y yum-utils
+yum install -y epel-release
+yum-builddep -y collectd
+
+# Install required packages
+yum -y install $(echo "
+
+kernel-devel
+kernel-headers
+make
+gcc
+gcc-c++
+autoconf
+automake
+flex
+bison
+libtool
+pkg-config
+git
+rpm-build
+libcap-devel
+xfsprogs-devel
+iptables-devel
+libmemcached-devel
+gtk2-devel
+libvirt-devel
+mcelog
+wget
+
+# install epel release required for git-review
+epel-release
+" | grep -v ^#)
+