Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated scripts to work with latest navcoin-core on ubuntu 18.04 and 20.04 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 3 additions & 50 deletions ubuntu-18.04-navcoin-core-dev-setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/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?"
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

Expand All @@ -12,53 +12,6 @@ else
echo "The script will not clone NavCoin Core"
fi

sudo apt-get update
sudo apt-get upgrade -y
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null

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
source ./ubuntu-xx-navcoin-core-dev-setup.sh
15 changes: 15 additions & 0 deletions ubuntu-20.04-navcoin-core-dev-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/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

source ./ubuntu-xx-navcoin-core-dev-setup.sh
47 changes: 47 additions & 0 deletions ubuntu-xx-navcoin-core-dev-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

sudo apt update
sudo apt upgrade -y

sudo apt install -y\
autoconf \
automake \
binutils-aarch64-linux-gnu \
binutils-arm-linux-gnueabihf \
binutils-gold \
bsdmainutils \
ca-certificates \
cmake \
curl \
faketime \
g++-8-aarch64-linux-gnu \
g++-8-arm-linux-gnueabihf \
g++-8-multilib \
g++-aarch64-linux-gnu \
g++-arm-linux-gnueabihf \
gcc-8-aarch64-linux-gnu \
gcc-8-arm-linux-gnueabihf \
gcc-8-multilib \
git \
libtool \
pkg-config \
python3 \
python3-pip \
python3-setuptools \
libtinfo5 \
libattr1-dev \

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 -j$(nproc)
cd ..
./autogen.sh
./configure --enable-debug --enable-tests --prefix=`pwd`/depends/`uname -m`-pc-linux-gnu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't --enable-debug crash eventually the wallet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would if you have multiple nodes connected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll just remove it for now

make -j$(nproc)
fi