Automation scripts
[o-du/l2.git] / build / scripts / install_odu_dependency.sh
1 ################################################################################
2 #   Copyright (c) [2020] [Radisys]                                             #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16 # This script is used to setup environment for execution of ODU-High
17 #!/bin/bash
18
19 echo "***** Installation Start *****"
20
21 if [ -f /etc/os-release ]; then
22    . /etc/os-release
23    OS=$ID
24 fi
25
26 echo "===> Installing GCC"
27 if [ $OS == "ubuntu" ] ; then
28    sudo apt-get install -y build-essential
29 else
30    sudo yum groups mark install -y “Development Tools”
31 fi
32 echo""
33
34 echo "===> Installing LKSCTP"
35 if [ $OS == "ubuntu" ] ; then
36    sudo apt-get install -y libsctp-dev
37 else
38    sudo yum install -y lksctp-tools-devel
39 fi
40 echo ""
41
42 echo "===> Installing PCAP"
43 if [ $OS == "ubuntu" ] ; then
44    sudo apt-get install -y libpcap-dev
45 else
46    sudo yum install -y libpcap-devel
47 fi
48 echo ""
49
50 echo "===> Installing XTERM"
51 if [ $OS == "ubuntu" ] ; then
52    sudo apt-get install -y xterm
53 else
54    sudo yum install -y xterm
55 fi
56 echo ""
57
58 echo "***** Installation Complete *****"
59
60 ################################################################################
61 #                              End of file                                     #
62 ################################################################################