This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
prep_env.sh
executable file
·58 lines (42 loc) · 2.66 KB
/
prep_env.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
set -e # exit on error.
set -x # echo commands.
set "##################### PREPARING ENVIRONMENT BECAUSE FUCK TRAVIS! ######################"
# - libgcrypt-dev # C crypto - secure RAM
# - libcryptopp-dev # C++ crypto - ciphers & keygen
# Installs the required version of libgpgerror for libgcrypt
wget --no-check-certificate https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.22.tar.bz2 -O gpgerror.tar.bz2
mkdir _my_gpgerror && tar xf gpgerror.tar.bz2 -C _my_gpgerror --strip 1
cd _my_gpgerror && ./configure && make && sudo make install
# Installs the required version of libgcrypt for the build
wget --no-check-certificate https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.0.tar.bz2 -O libgcrypt.tar.bz2
mkdir _my_gcrypt && tar xf libgcrypt.tar.bz2 -C _my_gcrypt --strip 1
cd _my_gcrypt && ./configure && make && sudo make install
# Installs the required version of libcrypto++ for the build
wget --no-check-certificate https://www.cryptopp.com/cryptopp563.zip -O cryptopp.zip
mkdir ./_my_cryptopp && unzip cryptopp.zip -d ./_my_cryptopp
cd ./_my_cryptopp && make && sudo make install
# Download and compile boost
wget --no-check-certificate http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.bz2/download -O boost.tar.bz2
mkdir _my_boost && tar xf boost.tar.bz2 -C _my_boost --strip 1
cd ./_my_boost && sudo ./bootstrap.sh --prefix=/usr/local && sudo ./b2 install
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar -xzvf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1 && ./configure --prefix=/usr && make && sudo make install
# Check for protobuf existance.
# if [ ! -d "$HOME/protobuf/lib" ]; then
# wget https://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
# tar -xzvf protobuf-2.4.1.tar.gz
# cd protobuf-2.4.1 && ./configure --prefix=$HOME/protobuf && make && make install
# else
# echo "Using cached directory."
# fi
# Download and install libboost-filesystem
# wget --no-check-certificate http://ftp.de.debian.org/debian/pool/main/b/boost-defaults/libboost-filesystem-dev_1.58.0.1_amd64.deb -O boost-filesystem-dev.deb
# sudo dpkg -i ./boost-filesystem-dev.deb
# Download and install libbost-serialisation
# wget --no-check-certificate http://ftp.de.debian.org/debian/pool/main/b/boost-defaults/libboost-serialization-dev_1.58.0.1_amd64.deb -O boost-serialisation.deb
# sudo dpkg -i ./boost-serialisation.deb
# Download and install libbost-serialisation
# wget --no-check-certificate http://ftp.de.debian.org/debian/pool/main/b/boost-defaults/libboost-system-dev_1.58.0.1_amd64.deb -O boost-system.deb
# sudo dpkg -i ./boost-system.deb
set "##################### LIBRARY PREPERATION DONE #####################"