-
Notifications
You must be signed in to change notification settings - Fork 4
/
ubuntu-18.04-navcoin-core-dev-setup.sh
64 lines (49 loc) · 1.72 KB
/
ubuntu-18.04-navcoin-core-dev-setup.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
#!/bin/bash
echo "This script will install the packages and libraries required to build the NavCoin Core wallet dependancies"
echo "Do you wish to clone 'NAVCoin/navcoin-core' and build the dependancies for the master branch as well?"
read -p 'Enter Y for yes or anything else to decline: ' uservar
if [ $uservar == "Y" ]
then
echo "The script will clone NavCoin Core and attempt to build the depends"
else
echo "The script will not clone NavCoin Core"
fi
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git build-essential libcurl3-dev libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libunbound-dev libattr1-dev libgmp-dev libsodium-dev libseccomp-dev libcap-dev cmake
sudo apt-get install -y libboost-all-dev
sudo apt-get install -y libminiupnpc-dev
sudo apt-get install -y libzmq3-dev
#install qt5
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install -y libqrencode-dev curl
#install unbound
mkdir tmp
cd tmp
wget https://nlnetlabs.nl/downloads/unbound/unbound-1.7.3.tar.gz
tar xvfz unbound-1.7.3.tar.gz
cd unbound-1.7.3/
./configure
make
sudo make install
cd ..
rm -rf tmp
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
#install zmq so we can run our python tests
sudo apt-get install python3-zmq
if [ $uservar == "Y" ]
then
cd ~
#clone and build all the deps required
git clone https://github.com/NAVCoin/navcoin-core
cd navcoin-core
git checkout master
cd depends
make
cd ..
./autogen.sh
./configure --enable-debug --enable-tests --prefix=`pwd`/depends/`uname -m`-pc-linux-gnu
make -j$(nproc)
fi