-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-centos-7.sh
executable file
·63 lines (53 loc) · 1.22 KB
/
build-centos-7.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
#!/usr/bin/env bash
yum -y install centos-release-scl-rh \
git \
wget \
zlib-devel \
bzip2-devel
# GCC 9,
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
scl enable devtoolset-9 'bash'
# CMake
yum -y install llvm-toolset-7-cmake
scl enable llvm-toolset-7 'bash'
# Compile Boost
cd $ROOTDIR
wget http://packages.gameap.ru/others/boost_1_70_0.tar.gz
tar -xvf boost_1_70_0.tar.gz
cd boost_1_70_0
./bootstrap.sh
./b2 install --link=static --with-system --with-filesystem --with-iostreams --with-thread
# Compile Binn
cd $ROOTDIR
git clone https://github.com/liteserver/binn
cd binn
make
ar rcs libbinn.a binn.o
cp libbinn.a /usr/lib/libbinn.a
cp src/binn.h /usr/include/binn.h
# OpenSSL
yum install openssl-devel
# CURL
yum install libcurl-devel
# Compile Rest Client Library
cd $ROOTDIR
git clone https://github.com/mrtazz/restclient-cpp
cd restclient-cpp
./autogen.sh
./configure
make
make install
# Compile Json Cpp
cd $ROOTDIR
git clone https://github.com/open-source-parsers/jsoncpp
cd jsoncpp
cmake .
make
make install
mkdir /usr/local/include/jsoncpp
mv /usr/local/include/json /usr/local/include/jsoncpp/json
# Compile GDAEMON
#--------------------------
cd $ROOTDIR
cmake -DBUILD_STATIC=1 -DUSE_STATIC_BOOST=1 ..
make