This repository was archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathdependencies_centos.sh
More file actions
executable file
·51 lines (40 loc) · 1.57 KB
/
dependencies_centos.sh
File metadata and controls
executable file
·51 lines (40 loc) · 1.57 KB
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
#!/bin/sh
function print_msg {
echo -e "${MSG_COLOR}*** $(date) *** dependencies_centos.sh | $@ ${NOCOLOR}"
}
function install_confd {
print_msg "Installing confd"
wget https://github.com/CiscoDevNet/ydk-gen/files/562538/confd-basic-6.2.linux.x86_64.zip &> /dev/null
unzip confd-basic-6.2.linux.x86_64.zip
./confd-basic-6.2.linux.x86_64.installer.bin ../confd
}
function install_openssl {
print_msg "Installing openssl 0.1.0u for confd"
wget https://www.openssl.org/source/openssl-1.0.1u.tar.gz &> /dev/null
tar -xvzf openssl-1.0.1u.tar.gz > /dev/null
cd openssl-1.0.1u
./config shared > /dev/null && make all > /dev/null
# cp libcrypto.so.1.0.0 ../../confd/lib
cd -
}
function install_dependencies {
print_msg "Installing dependencies"
yum update -y > /dev/null
yum install epel-release -y > /dev/null
yum install https://centos7.iuscommunity.org/ius-release.rpm -y > /dev/null
yum install git which libxml2-devel libxslt-devel libssh-devel libtool gcc-c++ pcre-devel -y > /dev/null
yum install cmake3 wget curl-devel unzip make sudo -y > /dev/null
yum install python3-devel -y
print_msg "Python3 location: $(which python3)"
print_msg "Pip3 location: $(which pip3)"
}
########################## EXECUTION STARTS HERE #############################
# Terminal colors
NOCOLOR="\033[0m"
YELLOW='\033[1;33m'
MSG_COLOR=$YELLOW
install_dependencies
install_openssl
# install_confd
print_msg "Installing YDK C++ core package"
yum install -y https://devhub.cisco.com/artifactory/rpm-ydk/0.8.4/libydk-0.8.4-1.x86_64.rpm