This repository has been archived by the owner on Dec 5, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux_setup_3rd_part.sh
81 lines (67 loc) · 2.24 KB
/
linux_setup_3rd_part.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export SNAPPY_VERSION=1.1.3
export BOOST_VERSION=1_59_0
export BOOST_VERSION_DOTTED=1.59.0
export JOYENT_HTTP_VERSION=2.3
#export SQLPP11_VERSION=0.33
export C_ARES_VERSION=1.11.0
export CURL_VERSION=7.47.1
wget --no-check-certificate http://c-ares.haxx.se/download/c-ares-$C_ARES_VERSION.tar.gz
tar xvf c-ares-$C_ARES_VERSION.tar.gz
rm -f c-ares-$C_ARES_VERSION.tar.gz
wget --no-check-certificate https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz
tar xvf curl-$CURL_VERSION.tar.gz
rm -f curl-$CURL_VERSION.tar.gz
wget --no-check-certificate https://github.com/google/snappy/releases/download/$SNAPPY_VERSION/snappy-$SNAPPY_VERSION.tar.gz -Osnappy-$SNAPPY_VERSION.tar.gz
tar xvf snappy-$SNAPPY_VERSION.tar.gz
rm -f snappy-$SNAPPY_VERSION.tar.gz
#RIGHT NOW WE ARE USING OWN AVRO BRANCH
#wget ftp://ftp.sunet.se/pub/www/servers/apache/dist/avro/avro-$AVRO_VERSION/cpp/avro-cpp-$AVRO_VERSION.tar.gz
#tar xvf avro-cpp-$AVRO_VERSION.tar.gz
#rm avro-cpp-$AVRO_VERSION.tar.gz
git clone https://github.com/bitbouncer/avro.git
rm -rf avro/lang/c++/avro
mkdir avro/lang/c++/avro
cp -r avro/lang/c++/api/* avro/lang/c++/avro
wget --no-check-certificate https://github.com/nodejs/http-parser/archive/v$JOYENT_HTTP_VERSION.tar.gz -Ohttp_parser.tar.gz
tar xvf http_parser.tar.gz
rm -f http_parser.tar.gz
#wget --no-check-certificate https://github.com/rbock/sqlpp11/archive/$SQLPP11_VERSION.tar.gz -Osqlpp11-v$SQLPP11_VERSION.tar.gz
#tar -xvf sqlpp11-v$SQLPP11_VERSION.tar.gz
#rm -f sqlpp11-v$SQLPP11_VERSION.tar.gz
wget http://sourceforge.net/projects/boost/files/boost/$BOOST_VERSION_DOTTED/boost_$BOOST_VERSION.tar.gz/download -Oboost_$BOOST_VERSION.tar.gz
tar xf boost_$BOOST_VERSION.tar.gz
rm -f boost_$BOOST_VERSION.tar.gz
mv boost_$BOOST_VERSION boost
cd boost
./bootstrap.sh
./b2 -j 4 link=static
cd ..
export CFLAGS='-O2'
echo building c-ares
cd c-ares-$C_ARES_VERSION
./configure --disable-shared
make
sudo make install
cd ..
echo done with building c-ares
cd curl-$CURL_VERSION
echo building curl
./configure --disable-shared --enable-ares
make
echo done building curl
cd ..
#build stuff
cd snappy-$SNAPPY_VERSION
./autogen.sh
./configure
make all
cd ..
#not used yet...
#cd sqlpp11-$SQLPP11_VERSION
#mkdir build
#cd build
#cmake ..
#make -j4
#sudo make install
#cd ..
#cd ..