-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_deps.sh
executable file
·53 lines (44 loc) · 1.1 KB
/
install_deps.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Show executed shell commands
set -o xtrace
# Exit on error.
set -e
apt update
apt install -y python3.9-dev git wget gnupg2 elfutils libdw-dev python3-pip libgmp3-dev
pip install cpplint pytest numpy
pip install cmake
apt install -y clang-12 clang-format-12 clang-tidy-6.0 libclang-12-dev llvm-12
ln -sf /usr/bin/clang++-12 /usr/bin/clang++
ln -sf /usr/bin/clang-12 /usr/bin/clang
# Install gtest.
(
cd /tmp
rm -rf /tmp/googletest
git clone -b release-1.8.0 https://github.com/google/googletest.git
cd /tmp/googletest
cmake CMakeLists.txt && make -j && make install
)
# Install gflags.
(
cd /tmp
rm -rf /tmp/gflags
git clone -b v2.2.1 https://github.com/gflags/gflags.git
cd /tmp/gflags
cmake CMakeLists.txt && make -j && make install
)
# Install glog.
(
cd /tmp
rm -rf /tmp/glog
git clone -b v0.3.5 https://github.com/google/glog.git
cd glog
cmake CMakeLists.txt && make -j && make install
)
# Install google benchmark.
(
cd /tmp
rm -rf /tmp/benchmark
git clone -b v1.4.0 https://github.com/google/benchmark.git
cd /tmp/benchmark
cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release && make -j && make install
)