-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-BTH-master-arm6.sh
executable file
·75 lines (56 loc) · 1.75 KB
/
install-BTH-master-arm6.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
#!/bin/bash
# Installation Script
BASE=~
echo $BASE;
echo "Installing version latest"
# Update system
sudo apt-get update -y
# Install git
sudo apt-get install git -y
# boostlib
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev -y
# open ssl
sudo apt-get install libssl-dev -y
# libevent
sudo apt-get install libevent-dev -y
# cURL and LibTools
sudo apt-get install curl git build-essential libtool autotools-dev -y
# Setup python3 other utils
sudo apt-get install automake pkg-config bsdmainutils python3 -y
# Libx11
sudo apt-get install libx11-xcb-dev libfontconfig-dev -y
# Install Libsodium
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar -xf LATEST.tar.gz
rm -rf LATEST.tar.gz
cd libsodium-stable/
./configure
make && make check
sudo make install
cd ..
rm -rf libsodium-stable
sudo ln -s /usr/local/lib/libsodium.so.23 /usr/lib/libsodium.so.23
# Install unzip
sudo apt-get install unzip -y
# Get Repo
cd /$BASE
git clone https://github.com/BTHPOS/BTH.git BTH-latest
# Go into Directory
cd BTH-latest
# Install Berkeleydb 4.8
chmod +x ~/nimble-scripts/berkeleydb-installation.sh
~/nimble-scripts/berkeleydb-installation.sh /$BASE/BTH-latest/
# Install Berkleydb Dependency (5.3)
# sudo apt-get install libdb++-dev -y
# Build dependencies
cd depends
make
cd ..
# # Build
./autogen.sh
export BDB_PREFIX=/$BASE/BTH-latest/db4
./configure --prefix=/$BASE/BTH-latest/depends/x86_64-pc-linux-gnu/ BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --enable-cxx --disable-shared --with-pic --disable-tests CXXFLAGS=" --param ggc-min-expand=1 --param ggc-min-heapsize=32768"
make
cd ..
mv BTH-latest /$BASE
cd /$BASE