Skip to content

Commit 3053559

Browse files
Create install-arm6.sh
1 parent 24a1dbf commit 3053559

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

unix/BTH/install-arm6.sh

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#!/bin/bash
2+
3+
# Bithereum Installation Script
4+
BASE=`~`
5+
echo $BASE;
6+
7+
echo "Installing version latest"
8+
9+
# Update system
10+
sudo apt-get update -y
11+
12+
# Install git
13+
sudo apt-get install git -y
14+
15+
# boostlib
16+
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev -y
17+
18+
# open ssl
19+
sudo apt-get install libssl-dev -y
20+
21+
# libevent
22+
sudo apt-get install libevent-dev -y
23+
24+
# cURL and LibTools
25+
sudo apt-get install curl git build-essential libtool autotools-dev -y
26+
27+
# Setup python3 other utils
28+
sudo apt-get install automake pkg-config bsdmainutils python3 -y
29+
30+
# Libx11
31+
sudo apt-get install libx11-xcb-dev libfontconfig-dev -y
32+
33+
# Install Libsodium
34+
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
35+
tar -xf LATEST.tar.gz
36+
rm -rf LATEST.tar.gz
37+
cd libsodium-stable/
38+
./configure
39+
make && make check
40+
sudo make install
41+
cd ..
42+
rm -rf libsodium-stable
43+
sudo ln -s /usr/local/lib/libsodium.so.23 /usr/lib/libsodium.so.23
44+
45+
# Install unzip
46+
sudo apt-get install unzip -y
47+
48+
# Get Bithereum Repo
49+
cd /$BASE
50+
git clone https://github.com/BTHPOS/BTH.git BTH-latest
51+
52+
# Go into Bithereum Directory
53+
cd BTH-latest
54+
55+
# Install Berkeleydb 4.8
56+
chmod +x ~/installation-scripts/unix/BTH/berkeleydb-installation.sh
57+
~/installation-scripts/unix/BTH/berkeleydb-installation.sh /$BASE/BTH-latest/
58+
59+
# Install Berkleydb Dependency (5.3)
60+
# sudo apt-get install libdb++-dev -y
61+
62+
# Build dependencies
63+
cd depends
64+
make
65+
cd ..
66+
67+
# # Build
68+
./autogen.sh
69+
export BDB_PREFIX=/$BASE/BTH-latest/db4
70+
./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 CXXFLAGS=" --param ggc-min-expand=1 --param ggc-min-heapsize=4096"
71+
make
72+
73+
cd ..
74+
mv BTH-latest /$BASE
75+
cd /$BASE

0 commit comments

Comments
 (0)