forked from cryptoscuttlebutt/altcoingenerator-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-install-dependencies.sh
executable file
·54 lines (46 loc) · 1.37 KB
/
00-install-dependencies.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
#!/bin/bash
source config.sh
installdb_debian() {
wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/install_db4.sh
chmod u+x install_db4.sh
./install_db4.sh `pwd`
export BDB_PREFIX=`pwd`'/db4'
echo "export BDB_PREFIX='${BDB_PREFIX}'" >> ~/.bashrc
ldconfig
# ./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/"
}
installdb_ubuntu() {
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get -y update
sudo apt-get -y install libdb4.8-dev libdb4.8++-dev
sudo ldconfig
}
install_dependencies() {
apt-get -y install sudo
sudo apt-get -y install automake pkg-config libevent-dev bsdmainutils
sudo apt-get -y install git
sudo apt-get -y install build-essential
sudo apt-get -y install libtool autotools-dev autoconf
sudo apt-get -y install libssl-dev
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install pkg-config
sudo apt-get -y install python3
#download_code
if [ $GUI == "TRUE" ]
then
sudo apt-get -y install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get -y install libqrencode-dev
else
echo " "
fi
if [ $DEBIAN == "TRUE" ]
then
mkdir ~/database
cd ~/database/
installdb_debian
else
installdb_ubuntu
fi
}
install_dependencies