Author

Topic: Bitcore install on Ubuntu 14.04 help (Read 1399 times)

hero member
Activity: 544
Merit: 506
October 28, 2017, 06:38:31 PM
#9
Thanks all for your help.
I think I finally fixed it.  My solution in case it helps others...

1. I upgraded to Ubuntu 16.04 (this may or may not be necessary as I have a feeling it was other fixes that solved it).

2. Set a password for the bitcore user.  I.e. after doing the
Code:
useradd -r -m bitcore

do the following
Code:
nvm install 5.0     (note not 4 as their docs recommend)
nvm use 5.0
sudo useradd -r -m bitcore
sudo usermod -aG sudo,adm bitcore
sudo passwd bitcore

   


Now bitcore has access to some files it needs to modify when installing.

Finally the bitcore docs were missing the line

Code:
apt-get install libzmq3-dev build-essential

and once that was added it all installed as expected.

Using node 5.0.0
Using nvm 0.31.1

Whilst I've not tried running bitcore yet, the installation had no errors and thought I'd share this post before I forget what I did.


OMG I have been looking for this answer all over the internet. THANK YOU, this finally make it work.
The solution is not even in the bitcore forum.

Sorry to unearth this post but I think it is worth it.
s2
full member
Activity: 198
Merit: 123
June 14, 2016, 09:50:54 AM
#8
Thanks all for your help.
I think I finally fixed it.  My solution in case it helps others...

1. I upgraded to Ubuntu 16.04 (this may or may not be necessary as I have a feeling it was other fixes that solved it).

2. Set a password for the bitcore user.  I.e. after doing the
Code:
useradd -r -m bitcore

do the following
Code:
nvm install 5.0     (note not 4 as their docs recommend)
nvm use 5.0
sudo useradd -r -m bitcore
sudo usermod -aG sudo,adm bitcore
sudo passwd bitcore

   


Now bitcore has access to some files it needs to modify when installing.

Finally the bitcore docs were missing the line

Code:
apt-get install libzmq3-dev build-essential

and once that was added it all installed as expected.

Using node 5.0.0
Using nvm 0.31.1

Whilst I've not tried running bitcore yet, the installation had no errors and thought I'd share this post before I forget what I did.
full member
Activity: 165
Merit: 100
June 13, 2016, 11:26:12 AM
#7
Most likely you'll be able to point bitcore to another datadir. Just look for what it uses as its bitcoin.conf (-conf=xxxx) or datadir,
s2
full member
Activity: 198
Merit: 123
June 13, 2016, 11:23:57 AM
#6
Yep, NVM installed fine.

Code:
nvm --version
0.31.1

bitcore@760:~$ node --version
v4.4.5

I'm thinking it might be Ubuntu 14.04 is the problem here.  I expect I may try upgrading ubuntu next as I don't think this should be anything obscure, like I say this is a totally fresh install on a new machine with nothing else on the HD so seems very odd the installation is producing any errors at all.

(Right now I'm downloading the blockchain via installing bitcoind myself, any ideas if bitcore will insist on using it's own copy of the blockchain and I'm wasting my time using bitcoind and waiting for the sync?)



full member
Activity: 165
Merit: 100
legendary
Activity: 1876
Merit: 1308
Get your game girl
June 13, 2016, 09:46:38 AM
#4
1.Bad idea to use node/npm to install as they need a lot of dependencies and will have a shit lods of other bugs which has less to no support from the community.

2.Try installing this way
Code:
npm install bitcoin-core --save

3.The problem could be you're running an older version of node.js or npm which is frequently updated ,try

Code:
npm install npm -g

4.Run
Code:
node -v
and check if its latest with the site.
s2
full member
Activity: 198
Merit: 123
June 13, 2016, 09:41:18 AM
#3
Thanks, yes I've tried a number of things including removing the global flag and installing it as the regular user (with and without global flag).  All fail.  Here's the bitcore daemon user with just "npm install bitcore"

Code:
 npm install bitcore
-
> [email protected] preinstall /home/bitcore/node_modules/bitcore/node_modules/bitcore-node
> ./scripts/download

Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12-bitcore/
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/home/bitcore/.nvm/versions/node/v4.4.5/bin/node" "/home/bitcore/.nvm/versions/node/v4.4.5/bin/npm" "install" "bitcore"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `./scripts/download`
npm ERR! Exit status 22
npm ERR!
npm ERR! Failed at the [email protected] preinstall script './scripts/download'.
npm ERR! This is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/bitcore/npm-debug.log
member
Activity: 66
Merit: 10
June 13, 2016, 09:35:03 AM
#2
Try installing it without the global setting, take out -g
s2
full member
Activity: 198
Merit: 123
June 13, 2016, 07:48:24 AM
#1
(Sorry posted while copy/pasting)
I'm really keen to use bitcore if possible because I love that it appears I can handle HD wallets via my node.js server easily.

That said I'm having a nightmare getting it installed and literally on my 3rd computer trying again and once more hit a wall.

I bought a Intel Duo 2.8GHz machine with 8GB ram, cleaned the 250Gb HD and installed Ubuntu 14.04.


Next I installed as per the instructions here...  https://bitcore.io/guides/upstart-daemon

Code:
nvm install v4
nvm use v4
>Now using node v4.4.5 (npm v2.15.5)

Code:
npm install -g bitcore

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/home/bitcore/.nvm/versions/node/v4.4.5/bin/node" "/home/bitcore/.nvm/versions/node/v4.4.5/bin/npm" "install" "-g" "bitcore"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `./scripts/download`
npm ERR! Exit status 22
npm ERR!
npm ERR! Failed at the [email protected] preinstall script './scripts/download'.
npm ERR! This is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/bitcore/npm-debug.log




Any ideas what I'm doing wrong here?  
Jump to: