node-cryptonote-pool icon indicating copy to clipboard operation
node-cryptonote-pool copied to clipboard

Multi Hash Error NPM UPDATE

Open margotpaon opened this issue 10 years ago • 4 comments

Hi! Someone help me this errors? Tks

gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Linux 2.6.32-042stab103.6 gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/p2pool_cryptonight/node_modules/multi-hashing gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok npm ERR! Linux 2.6.32-042stab103.6 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "update" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the cryptonote-util package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls cryptonote-util npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /root/p2pool_cryptonight/npm-debug.log

margotpaon avatar Oct 18 '15 05:10 margotpaon

this is because of changes in node.js. I have an updated version of node-multi-hashing (and node-cryptonote-util) that should work, but I think the pool code needs to be updated, too. you can try changing the package.json lines to: "multi-hashing": "git://github.com/clintar/node-multi-hashing.git#Nan-2.0", "cryptonote-util": "git://github.com/clintar/node-cryptonote-util.git#Nan-2.0" and see if it npm update works. I got the pool code to work by adding Buffer.prototype.toByteArray = function () { return Array.prototype.slice.call(this, 0) } after var utils = require('./utils.js');

and then change the two places that say

var buffArray = buff.toJSON(); buffArray.reverse(); to var buffArray = buff.toByteArray().reverse(); and it should run.

If you want the easy way out, you probably just want to use nvm to install node 0.10.x and then it will work.

clintar avatar Nov 18 '15 07:11 clintar

That should work with latest Node.js, too, btw.

clintar avatar Nov 18 '15 07:11 clintar

https://github.com/nodesource/distributions

Node.js v0.10:

Using Ubuntu

curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash - sudo apt-get install -y nodejs

Using Debian, as root

curl -sL https://deb.nodesource.com/setup_0.10 | bash - apt-get install -y nodejs

sammy007 avatar Nov 18 '15 07:11 sammy007

[email protected] install /home/asylum/pool/node_modules/cryptonote-util node-gyp rebuild

make: Entering directory '/home/asylum/pool/node_modules/cryptonote-util/build' CXX(target) Release/obj.target/cryptonote/src/main.o g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-5/README.Bugs for instructions. cryptonote.target.mk:102: recipe for target 'Release/obj.target/cryptonote/src/main.o' failed make: *** [Release/obj.target/cryptonote/src/main.o] Error 4 make: Leaving directory '/home/asylum/pool/node_modules/cryptonote-util/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Linux 4.2.0-042stab113.11 gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/asylum/pool/node_modules/cryptonote-util gyp ERR! node -v v6.3.1 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok [email protected] /home/asylum/pool `-- [email protected] (git://github.com/clintar/node-multi-hashing.git#6df2cd104c0dcc5dceea216c1fcadbbbd0986552)

[email protected] /home/asylum/pool `-- [email protected] (git://github.com/clintar/node-multi-hashing.git#6df2cd104c0dcc5dceea216c1fcadbbbd0986552)

npm ERR! Linux 4.2.0-042stab113.11 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "update" npm ERR! node v6.3.1 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the cryptonote-util package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs cryptonote-util npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls cryptonote-util npm ERR! There is likely additional logging output above.

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

it's funny it says i have v3.4 of node-gyp when i installed 4.0 and did it though npm

Asylum4You avatar Dec 08 '16 05:12 Asylum4You