zone117x / node-cryptonote-pool

Mining pool for CryptoNote based coins such as Bytecoin and Monero
GNU General Public License v2.0
825 stars 1.14k forks source link

Unable a buil in opensuse 42.3 #210

Open Soyasi opened 6 years ago

Soyasi commented 6 years ago

3364 info lifecycle cryptonote-util@0.0.1~install: cryptonote-util@0.0.1 3365 verbose lifecycle cryptonote-util@0.0.1~install: unsafe-perm in lifecycle true 3366 verbose lifecycle cryptonote-util@0.0.1~install: PATH: /usr/lib64/node_modules/npm8/bin/node-gyp-bin:/home2/eriel/bin/pool/cryptonote-universal/node_modules/cryptonote-util/node_modules/.bin:/home2/eriel/bin/pool/cryptonote-universal/node_modules/.bin:/home2/eriel/.cargo/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home2/eriel/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games 3367 verbose lifecycle cryptonote-util@0.0.1~install: CWD: /home2/eriel/bin/pool/cryptonote-universal/node_modules/cryptonote-util 3368 silly lifecycle cryptonote-util@0.0.1~install: Args: [ '-c', 'node-gyp rebuild' ] 3369 silly lifecycle cryptonote-util@0.0.1~install: Returned: code: 1 signal: null 3370 info lifecycle cryptonote-util@0.0.1~install: Failed to exec install script 3371 verbose unlock done using /home2/eriel/.npm/_locks/staging-699ca7b9174ce8a9.lock for /home2/eriel/bin/pool/cryptonote-universal/node_modules/.staging 3372 verbose stack Error: cryptonote-util@0.0.1 install: node-gyp rebuild 3372 verbose stack Exit status 1 3372 verbose stack at EventEmitter. (/usr/lib64/node_modules/npm8/lib/utils/lifecycle.js:289:16) 3372 verbose stack at emitTwo (events.js:125:13) 3372 verbose stack at EventEmitter.emit (events.js:213:7) 3372 verbose stack at ChildProcess. (/usr/lib64/node_modules/npm8/lib/utils/spawn.js:40:14) 3372 verbose stack at emitTwo (events.js:125:13) 3372 verbose stack at ChildProcess.emit (events.js:213:7) 3372 verbose stack at maybeClose (internal/child_process.js:927:16) 3372 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 3373 verbose pkgid cryptonote-util@0.0.1 3374 verbose cwd /home2/eriel/bin/pool/cryptonote-universal 3375 verbose Linux 4.4.87-25-default 3376 verbose argv "/usr/bin/node8" "/usr/bin/npm-default" "update" 3377 verbose node v8.6.0 3378 verbose npm v5.3.0 3379 error code ELIFECYCLE 3380 error errno 1 3381 error cryptonote-util@0.0.1 install: node-gyp rebuild 3381 error Exit status 1 3382 error Failed at the cryptonote-util@0.0.1 install script. 3382 error This is probably not a problem with npm. There is likely additional logging output above. 3383 verbose exit [ 1, true ] 2017-10-10T11_12_25_746Z-debug.log

## Is there any known solution? The only solution is to install nodejs 0.10? #93

msilvoli commented 6 years ago

@Soyasi Yes, the #93 I'm running opensuse 42.3 kernel 4.4.87-18.29-default I was into the problem. I installed other versions (older) from the same distribution but were receiving the same error... The following are not working ! node v4.8.4 npm v2.15.11 node-gyp -v v3.4.0

node v4.7.3 npm v2.15.11 node-gyp v3.4.0

node v4.6.0 or v4.6.1 npm v2.15.9 node-gyp -v v3.4.0

The problem seems to be the [ node-gyp ] so do the following : 1 - go to https://nodejs.org/dist/latest-v0.10.x/ and download the version compatible with your architecture and unzip into a directory you want. 2 - enter in the root directory of your pool files [ e.g. /home/mypool ] and delete the directory [ node_modules ] 3 - In this same directory [ e.g. /home/mypool ], execute the npm update giving the new executable previously unzipped, e.g [ /node-v0.10.48-linux-x64/bin/npm update ] 4 - Continue in the directory and run the node, e.g. [ /node-v0.10.48-linux-x64/bin/node init.js ]

That is it ! Cheers.