-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup-explorer-directory.sh
executable file
·34 lines (26 loc) · 1.25 KB
/
setup-explorer-directory.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
#!/bin/bash
#
# (c) Decker, 2018
#
STEP_START='\e[1;47;42m'
STEP_END='\e[0m'
CUR_DIR=$(pwd)
echo "Preparing the current directory: $CUR_DIR"
echo "This script needs to be run only once in a directory. It installs dependencies and komodo's flavour of bitcore-node"
echo -e "$STEP_START[ * ]$STEP_END Installing dependencies, might require 'sudo' password"
sudo apt --yes install git
sudo apt --yes install build-essential pkg-config libc6-dev libevent-dev m4 g++-multilib autoconf libtool libncurses5-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libdb++-dev ntp ntpdate
sudo apt --yes install libcurl4-gnutls-dev
sudo apt --yes install curl
echo -e "$STEP_START[ * ]$STEP_END Installing NodeJS and Bitcore Node"
# install nodejs and other stuff
sudo apt --yes install libsodium-dev
sudo apt --yes install libzmq3-dev
# install nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# switch node setup with nvm
nvm install v4
mkdir -p node_modules
npm install git+https://[email protected]/DeckerSU/bitcore-node-komodo # npm install bitcore