-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile-script.sh
35 lines (27 loc) · 1.49 KB
/
compile-script.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
#!/bin/bash
apt-get update
apt-get remove --purge --auto-remove cmake
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common lsb-release curl
apt-get clean all
curl https://apt.kitware.com/kitware-archive.sh | bash
apt-get install -y cmake
DEBIAN_FRONTEND=noninteractive apt-get -y install sudo git curl build-essential pkg-config bison flex autoconf \
binutils-dev libevent-dev acl-dev libfmt-dev libjemalloc-dev libiberty-dev \
libdouble-conversion-dev liblz4-dev liblzma-dev libssl-dev libunwind-dev \
libboost-filesystem-dev libboost-program-options-dev libboost-system-dev \
libboost-iostreams-dev libboost-date-time-dev libboost-context-dev \
libboost-regex-dev libboost-thread-dev libbrotli-dev libdwarf-dev libelf-dev \
libgoogle-glog-dev libffi-dev libgdbm-dev libyaml-dev libncurses-dev \
libreadline-dev libncurses-dev libreadline-dev ruby-dev ruby-bundler \
libutfcpp-dev
apt install -y gcc-10 g++-10
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
apt install -y clang-12
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 150
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 150
git clone https://github.com/jordansissel/fpm.git
cd fpm && git checkout tags/v1.15.1 && cd ../
gem install tebako
tebako press --Ruby 2.7.8 --root='./fpm' --entry=fpm --output=fpm-arm64-exe