forked from haywire/haywire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_dependencies.sh
executable file
·63 lines (57 loc) · 1.46 KB
/
compile_dependencies.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
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Getting libuv
if [ ! -d "lib/libuv" ]; then
echo "git clone https://github.com/libuv/libuv.git lib/libuv"
git clone https://github.com/libuv/libuv.git lib/libuv
cd lib/libuv
sh autogen.sh
./configure
make
cd ../../
fi
# Getting Wrk
if [ ! -d "bin/wrk" ]; then
echo "git clone https://github.com/wg/wrk.git bin/wrk"
git clone https://github.com/wg/wrk.git bin/wrk
cd bin/wrk
make
cd ../../
fi
# Getting Wrk2
if [ ! -d "bin/wrk2" ]; then
echo "git clone https://github.com/giltene/wrk2.git bin/wrk2"
git clone https://github.com/giltene/wrk2.git bin/wrk2
cd bin/wrk2
make
cd ../../
fi
# Getting libumem
if [ ! -d "lib/libumem" ]; then
echo "git clone https://github.com/gburd/libumem.git lib/libumem"
git clone https://github.com/gburd/libumem.git lib/libumem
cd lib/libumem
./autogen.sh
./configure
make
cd ../../
fi
# Getting TCMalloc
if [ ! -d "lib/gperftools" ]; then
echo "git clone https://github.com/gperftools/gperftools.git lib/gperftools"
git clone https://github.com/gperftools/gperftools.git lib/gperftools
cd lib/gperftools
./autogen.sh
./configure
make
cd ../../
fi
# Getting JEMalloc
if [ ! -d "lib/jemalloc" ]; then
echo "git clone https://github.com/jemalloc/jemalloc.git lib/jemalloc"
git clone https://github.com/jemalloc/jemalloc.git lib/jemalloc
cd lib/gperftools
./autogen.sh
./configure
make
cd ../../
fi