Skip to content

Instantly share code, notes, and snippets.

@Alex-Werner
Created July 14, 2017 21:09
Show Gist options
  • Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
Bitcore-node-dash install
sudo apt-get install -y -q \
build-essential \
curl \
git \
libzmq3-dev \
python2.7 \
apt-get update \
&& apt-get install -y -q software-properties-common \
&& add-apt-repository ppa:bitcoin/bitcoin \
&& apt-get update \
&& apt-get install -y -q \
automake \
autotools-dev \
bsdmainutils \
build-essential \
libboost-all-dev \
libdb4.8-dev \
libdb4.8++-dev \
libevent-dev \
libssl-dev \
libtool \
pkg-config \
# compile last dashd
cd /tmp \
&& git clone https://github.com/dashpay/dash \
&& cd dash \
&& ./autogen.sh \
&& ./configure \
&& make
cp /tmp/dash/src/{dashd,dash-cli} /usr/bin \ && rm -rf /tmp/dash
# setup and switch to user bitcore
/usr/sbin/useradd -s /bin/bash -m -d /bitcore bitcore \
&& chown bitcore:bitcore -R /bitcore
su bitcore
HOME=/bitcore
NODE_VERSION=4.0.0
NVM_VERSION=0.33.2
NVM_DIR=$HOME/.nvm
curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
cd $HOME \
&& source $NVM_DIR/nvm.sh \
&& nvm use v4.0.0 \
&& mkdir -p $HOME/.bitcore/data \
&& ln -s /usr/bin/dashd $HOME/.bitcore/data \
&& git clone https://github.com/dashpay/bitcore-dash -b nodownload \
&& cd bitcore-dash \
&& npm install dashpay/insight-api-dash#master_jaxx --save \
&& npm install -g
cd $HOME \
&& echo "#!/bin/bash" >> launch_bitcore-dash.sh \
&& echo "source $NVM_DIR/nvm.sh" >> launch_bitcore-dash.sh \
&& echo "cd $NVM_DIR/versions/node/v4.0.0/bin/" >> launch_bitcore-dash.sh \
&& echo "bitcored" >> launch_bitcore-dash.sh \
&& chmod a+x launch_bitcore-dash.sh
Then start with :
./bitcore/launch_bitcore-dash.sh
@bsbits
Copy link

bsbits commented Jul 15, 2017

Installing .....

It's taking some time, I will update you when it's done.

Merci.

@bsbits
Copy link

bsbits commented Jul 15, 2017

and it worked.

Just fix the line && echo "#!/bin/bash" >> launch_bitcore-dash.sh \

Thank you again.

@Alex-Werner
Copy link
Author

@bsbits Yeah, install can take some time, this is because I made you compiling the Dashd, I would be clever to give you the direct link, but this way I was sure it would work.

Can you be more specific around the issue on the line ? I don't get the difference :o

Avec grand plaisir :)

@libanaabdul
Copy link

Hi Alex,

I have this issue, please help me! :)

root@192:/bitcore/.nvm/versions/node/v4.0.0/bin# bitcored
More than one instance of bitcore-lib found. Please make sure that you are not mixing instances of classes of the different versions of bitcore.
[2017-10-28T00:35:17.874Z] info: Using config: /root/.bitcore/bitcore-node-dash.json
[2017-10-28T00:35:17.874Z] info: Using network: livenet
[2017-10-28T00:35:17.875Z] info: Starting bitcoind
[2017-10-28T00:35:17.877Z] info: Using bitcoin config file: /root/.bitcore/data/dash.conf
[2017-10-28T00:35:17.879Z] info: Starting dash process
[2017-10-28T00:35:17.889Z] error: Error: spawn /root/.bitcore/data/dashd ENOENT
at exports._errnoException (util.js:837:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)

Thanks!

@libanaabdul
Copy link

Hi Alex,

This is resolved. But when is testnet sync just in case to 97%, why? Please help me!

Thanks!

@zarulizham
Copy link

Hello, currently I'm encountered a problem which
screen shot 2017-12-11 at 2 48 19 pm

Any reasons and fix for this problem?

@emil-perhinschi
Copy link

https://github.com/dashpay/bitcore-dash -b nodownload

that branch does not exist there at this time

this should work

https://github.com/dashpay/bitcore-node-dash

@dukle
Copy link

dukle commented May 14, 2018

The dashcore is trying to get installed from here: https://bamboo.dash.org/browse/DASHL-REL-13/artifact/JOB1/gitian-linux-dash-dist/dashcore-0.12.2-linux64.tar.gz

Is this the right path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment