-
-
Save Alex-Werner/0be9bb4757b013043eeb9be5d93d9d39 to your computer and use it in GitHub Desktop.
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 |
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!
Hi Alex,
This is resolved. But when is testnet sync just in case to 97%, why? Please help me!
Thanks!
https://github.com/dashpay/bitcore-dash -b nodownload
that branch does not exist there at this time
this should work
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?
@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 :)