-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_deps_remote.sh
More file actions
89 lines (67 loc) · 2 KB
/
Copy pathinstall_deps_remote.sh
File metadata and controls
89 lines (67 loc) · 2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
curdir=`pwd`
mkdir ${curdir}/.deps
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install argtable2"
wget http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz -O argtable2-13.tar.gz
tar -zxf argtable2-13.tar.gz
cd argtable2-13
./configure
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install Catch2"
wget https://github.com/catchorg/Catch2/archive/v2.4.1.tar.gz -O Catch2-2.4.1.tar.gz
tar -zxf Catch2-2.4.1.tar.gz
cd Catch2-2.4.1
mkdir build
cd build
cmake ..
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install hiredis"
wget https://github.com/redis/hiredis/archive/v0.14.0.tar.gz -O hiredis-0.14.0.tar.gz
tar -zxf hiredis-0.14.0.tar.gz
cd hiredis-0.14.0
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install libmicrohttpd"
wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.59.tar.gz -O libmicrohttpd-0.9.59.tar.gz
tar -zxf libmicrohttpd-0.9.59.tar.gz
cd libmicrohttpd-0.9.59
./configure
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install jsoncpp"
wget https://github.com/open-source-parsers/jsoncpp/archive/1.8.4.tar.gz -O jsoncpp-1.8.4.tar.gz
tar -zxf jsoncpp-1.8.4.tar.gz
cd jsoncpp-1.8.4
sed '15 a set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")' -i CMakeLists.txt
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install libjson-rpc-cpp"
wget https://github.com/cinemast/libjson-rpc-cpp/archive/v1.1.1.tar.gz -O libjson-rpc-cpp-1.1.1.tar.gz
tar -zxf libjson-rpc-cpp-1.1.1.tar.gz
cd libjson-rpc-cpp-1.1.1
mkdir build
cd build
cmake ..
make
sudo make install
cd ${curdir}/.deps
echo ">>>>>>>>>>>>>>>>>>>> install cryptopp"
wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_5_6_5.tar.gz -O cryptopp-CRYPTOPP_5_6_5.tar.gz
tar -zxf cryptopp-CRYPTOPP_5_6_5.tar.gz
cd cryptopp-CRYPTOPP_5_6_5
make -j4 CXXFLAGS="-DNDEBUG -g2 -O2 -fPIC -pipe"
sudo make install
cd ${curdir}
sudo updatedb
sudo ldconfig