Bitcoin Forum
June 17, 2024, 09:51:13 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcore install on Ubuntu 14.04 help  (Read 1399 times)
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
June 13, 2016, 11: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! bitcore-node@3.0.1 preinstall: `./scripts/download`
npm ERR! Exit status 22
npm ERR!
npm ERR! Failed at the bitcore-node@3.0.1 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?  
StakeEngine
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
June 13, 2016, 01:35:03 PM
 #2

Try installing it without the global setting, take out -g
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
June 13, 2016, 01:41:18 PM
 #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
-
> bitcore-node@3.0.1 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! bitcore-node@3.0.1 preinstall: `./scripts/download`
npm ERR! Exit status 22
npm ERR!
npm ERR! Failed at the bitcore-node@3.0.1 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
Joel_Jantsen
Legendary
*
Offline Offline

Activity: 1904
Merit: 1310

Get your game girl


View Profile
June 13, 2016, 01:46:38 PM
 #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.
PantminerS7
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
June 13, 2016, 01:48:09 PM
 #5

I Just installed on 16.04

Did you run the install script? (https://github.com/creationix/nvm#install-script)
Quote
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
June 13, 2016, 03:23:57 PM
 #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?)



PantminerS7
Full Member
***
Offline Offline

Activity: 165
Merit: 100


View Profile
June 13, 2016, 03:26:12 PM
 #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 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
June 14, 2016, 01:50:54 PM
 #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

    <Set a password here>


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.
miguelmorales85
Hero Member
*****
Offline Offline

Activity: 544
Merit: 506


View Profile
October 28, 2017, 10: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

    <Set a password here>


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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!