blob: 92ee42b8a999febc52f2265a752e4dc6db4a787e (
plain)
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
|
#!/usr/bin/env bash
#
# Install build dpenedencies.
set -e
set -u
platform=$(uname -s)
if [ -e /etc/os-release ]; then
source /etc/os-release
platform=${platform}-${ID}
fi
set -x
case $platform in
Darwin)
brew install openssl@1.1
;;
Linux-ubuntu*)
apt-get install -y \
gcc make cmake zlib1g-dev libssl-dev libkrb5-dev
;;
Linux-centos* | Linux-rhel* | Linux-rocky* | Linux-almalinux)
yum install -y \
gcc make cmake zlib-devel openssl-devel rpm-build
;;
FreeBSD-freebsd)
pkg install cmake
;;
*)
echo "unsupported platform: $platform"
exit 1
;;
esac
|